Skip to content

Commit

Permalink
Merge pull request bndtools#1958 from bjhargrave/build-zulu
Browse files Browse the repository at this point in the history
travis: Refactor and use Zulu for JDK 8
  • Loading branch information
bjhargrave authored Dec 2, 2018
2 parents f742165 + f8a0d14 commit 8260851
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,32 @@ sudo: false

language: java

jdk:
- oraclejdk8
env:
global:

matrix:
include:
- name: "OpenJDK8"
allow_failures:
- env: ALLOW_FAILURE=true

before_install:
- unset _JAVA_OPTIONS
- "unset _JAVA_OPTIONS"
- "curl -O -L --retry 3 https://github.com/sormuras/bach/raw/master/install-jdk.sh"

install:
- ./gradlew --no-daemon --version
- "source install-jdk.sh --url https://cdn.azul.com/zulu/bin/zulu8.33.0.1-jdk8.0.192-linux_x64.tar.gz"

before_script:
- "./gradlew --no-daemon --version"

script:
- ./gradlew --no-daemon -Dmaven.repo.local=cnf/cache/stable/m2 --continue
- "./gradlew --no-daemon -Dmaven.repo.local=cnf/cache/stable/m2 --continue"

before_cache:
- git status
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
- "git status"
- "rm -f $HOME/.gradle/caches/modules-2/modules-2.lock"
- "rm -rf $HOME/.gradle/caches/*/plugin-resolution/"

cache:
directories:
Expand Down

0 comments on commit 8260851

Please sign in to comment.