Skip to content

Commit

Permalink
Merge remote-tracking branch 'spotbugs/master' into read-the-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Oct 19, 2017
2 parents 31cfaa1 + e04b11f commit ccee01c
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .travis.yml
Expand Up @@ -2,10 +2,11 @@ language: java
sudo: false
dist: trusty

jdk:
- oraclejdk8
- oraclejdk9

env:
matrix:
- JDK_FOR_TEST=oraclejdk9
- JDK_FOR_TEST=oraclejdk8
global:
- SONAR_HOST_URL="https://sonarcloud.io"

Expand All @@ -31,7 +32,6 @@ env:
addons:
apt:
packages:
- oracle-java9-installer
- oracle-java8-installer
- oracle-java8-set-default

Expand All @@ -47,12 +47,13 @@ install:
- echo eclipseRoot.dir=$(pwd)/eclipse > eclipsePlugin/local.properties

script:
- jdk_switcher use oraclejdk8
- ./gradlew compileJava compileTestJava -S
- jdk_switcher use $JDK_FOR_TEST
- jdk_switcher use $TRAVIS_JDK_VERSION
- ./gradlew -v --no-daemon
- ./gradlew build smoketest -S --no-daemon
- jdk_switcher use oraclejdk8
- if [[ $JDK_FOR_TEST == "oraclejdk8" ]]; then ./gradlew sonarqube -S; fi
- if [[ $TRAVIS_JDK_VERSION == "oraclejdk8" ]]; then ./gradlew sonarqube -S; fi

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand All @@ -73,7 +74,7 @@ deploy:
email: skypencil+spotbugs-bot@gmail.com
on:
branch: master
condition: "$JDK_FOR_TEST = oraclejdk8"
jdk: oraclejdk8
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
Expand All @@ -82,7 +83,7 @@ deploy:
email: skypencil+spotbugs-bot@gmail.com
on:
tags: true
condition: "$JDK_FOR_TEST = oraclejdk8"
jdk: oraclejdk8
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
Expand All @@ -91,22 +92,23 @@ deploy:
email: skypencil+spotbugs-bot@gmail.com
on:
tags: true
condition: "$JDK_FOR_TEST = oraclejdk8 && $TRAVIS_TAG != *'_RC'*"
jdk: oraclejdk8
condition: "$TRAVIS_TAG != *'_RC'*"
- provider: script
skip_cleanup: true
script: ./gradlew uploadArchives -PossrhUsername="$SONATYPE_USERNAME" -PossrhPassword="$SONATYPE_PASSWORD"
on:
branch: master
condition: "$JDK_FOR_TEST = oraclejdk8"
jdk: oraclejdk8
- provider: script
skip_cleanup: true
script: ./gradlew publishPlugins -Pgradle.publish.key="$GRADLE_PUBLISH_KEY" -Pgradle.publish.secret="$GRADLE_PUBLISH_SECRET"
on:
tags: true
condition: "$JDK_FOR_TEST = oraclejdk8"
jdk: oraclejdk8
- provider: script
skip_cleanup: true
script: ./gradlew uploadArchives -PossrhUsername="$SONATYPE_USERNAME" -PossrhPassword="$SONATYPE_PASSWORD" -Psigning.keyId="$SIGNING_KEY_ID" -Psigning.password="$SIGNING_PASSWORD" -Psigning.secretKeyRingFile="$TRAVIS_BUILD_DIR/secring.gpg"
on:
tags: true
condition: "$JDK_FOR_TEST = oraclejdk8"
jdk: oraclejdk8

0 comments on commit ccee01c

Please sign in to comment.