Skip to content

Commit

Permalink
travis script improvement (ReactiveX#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski authored and RobWin committed Dec 17, 2019
1 parent 9546fac commit 1268dd5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
dist: trusty
language: java
sudo: false
matrix:
os: linux
jobs:
include:
- jdk: oraclejdk8
env: PUBLISH=true
#- jdk: openjdk11
before_install:
- chmod +x gradlew
after_success:
- test -n $SONAR_TOKEN && ./gradlew sonarqube
- test $TRAVIS_BRANCH = "master" && test -n $BINTRAY_USER && test -n $PUBLISH && ./gradlew artifactoryPublish -PbintrayUsername="${BINTRAY_USER}" -PbintrayApiKey="${BINTRAY_KEY}"
- if [ -n "$SONAR_TOKEN" ]; then ./gradlew sonarqube; fi
- if [ "$TRAVIS_BRANCH" = "master" ] && [ -n "$BINTRAY_USER" ] && [ -n "$PUBLISH" ]; then
./gradlew artifactoryPublish -PbintrayUsername="${BINTRAY_USER}" -PbintrayApiKey="${BINTRAY_KEY}";
fi
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
Expand Down

0 comments on commit 1268dd5

Please sign in to comment.