Skip to content

Commit

Permalink
Prevent uploading to maven on PRs >.<
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluexin authored Jan 1, 2018
1 parent eb0bb84 commit 15cefc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ install:
- chmod +x gradlew
- sed -i 's:^[ \t]*build_number[ \t]*=\([ \t]*.*\)$:build_number=\1-SNAPSHOT:' gradle.properties
script:
- ./gradlew build uploadArchives
- if [ -n $TRAVIS_PULL_REQUEST_BRANCH ]; then ./gradlew build; else ./gradlew build uploadArchives; fi
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
Expand Down

0 comments on commit 15cefc1

Please sign in to comment.