Skip to content

Commit 64f05ca

Browse files
committed
avoid dir change
1 parent e713c84 commit 64f05ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ before_script:
4949
- _JAVA_OPTIONS=
5050

5151
script:
52-
- cd android/app && mvn clean test verify checkstyle:check forbiddenapis:check -B
52+
- mvn -P include-android -pl android/app clean test verify checkstyle:check forbiddenapis:check -B
5353

5454
after_success:
5555
# deploy snapshot artifacts to sonatype and if tagged deploy the release to maven central
5656
- if [ "$TRAVIS_BRANCH" == "android_test" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
57-
cd android/app && mvn deploy --settings ../../core/files/settings.xml -DskipTests=true -B;
57+
mvn -P include-android -pl android/app deploy --settings core/files/settings.xml -DskipTests=true -B;
5858
elif [ "$TRAVIS_TAG" != "" ]; then
5959
echo "release to maven central";
60-
cd android/app && mvn -P release --settings ../../core/files/settings.xml -DskipTests=true -Drevision=$TRAVIS_TAG -B deploy;
60+
mvn -P release -P include-android -pl android/app --settings core/files/settings.xml -DskipTests=true -Drevision=$TRAVIS_TAG -B deploy;
6161
else
6262
echo "Not deploying artifacts for $TRAVIS_BRANCH";
6363
fi

0 commit comments

Comments
 (0)