Skip to content

Commit f0f7acd

Browse files
committed
Don't deploy snapshots on PR
1 parent 820257a commit f0f7acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ script:
1515
- mvn clean install -Dsnapshot.version=-`git rev-parse --short HEAD`
1616

1717
after_success:
18-
- test $TRAVIS_BRANCH = "master" && mvn source:jar deploy --settings .travis/maven-settings.xml -Dmaven.test.skip=true
18+
- test "$TRAVIS_BRANCH" = "master" && test "$TRAVIS_PULL_REQUEST" = "false" && mvn source:jar deploy --settings .travis/maven-settings.xml -Dmaven.test.skip=true
1919
- test "$TRAVIS_TAG" != "" && mvn source:jar deploy --settings .travis/maven-settings-release.xml -Dmaven.test.skip=true
2020
- codecov
2121
# - bash -x -e .travis/deploy.sh

0 commit comments

Comments
 (0)