Skip to content

Commit

Permalink
Migrate to the JDKs managed by Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
matsumana committed Jan 17, 2019
1 parent 272c605 commit ee5abd5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 63 deletions.
18 changes: 12 additions & 6 deletions .travis.yml
Expand Up @@ -5,6 +5,8 @@ os:
branches:
only:
- master
jdk:
- openjdk11

cache:
directories:
Expand All @@ -16,18 +18,22 @@ cache:
env:
global:
- _JAVA_OPTIONS=
- JAVA_HOME=$HOME/.jdk/default_11
- PATH=$JAVA_HOME/bin:$PATH
- GRADLE_OPTS=-Xmx1280m
before_install:
- ".travis/install-jdk8.sh"
- ".travis/install-jdk11.sh"
- "./gradlew --version"
install:
- true
script:
- "./gradlew --no-daemon --stacktrace -Pcoverage checkstyle test publishMavenPublicationToMavenLocal -x javadoc"
- "./test/run_tests.sh"
# build with OpenJDK 11
- "./gradlew --no-daemon --stacktrace -Pcoverage checkstyle test publishToMavenLocal -x javadoc"
- cd test
# test with OpenJDK 11
- "./gradlew --no-daemon --stacktrace clean build"
- "java -jar ./build/libs/auto-string-formatter-test-*.jar"
# test with Oracle JDK 8
- jdk_switcher use oraclejdk8
- "./gradlew --no-daemon --stacktrace clean build"
- "java -jar ./build/libs/auto-string-formatter-test-*.jar"
before_cache:
- find $HOME/.gradle/caches -name '*.lock' -delete
after_success:
Expand Down
25 changes: 0 additions & 25 deletions .travis/functions.sh

This file was deleted.

13 changes: 0 additions & 13 deletions .travis/install-jdk11.sh

This file was deleted.

13 changes: 0 additions & 13 deletions .travis/install-jdk8.sh

This file was deleted.

6 changes: 0 additions & 6 deletions test/run_tests.sh

This file was deleted.

0 comments on commit ee5abd5

Please sign in to comment.