Skip to content

Commit

Permalink
switch back to openjdk since zulu 7 doesn't support javascript, see i…
Browse files Browse the repository at this point in the history
…ssue #4961
  • Loading branch information
beiwei30 committed Sep 2, 2019
1 parent 8969b34 commit 5c5ac0a
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,19 @@
language: java
sudo: false

matrix:
include:
- env:
- ZULUJDK=8
- env:
- ZULUJDK=7

before_install:
# adding $HOME/.sdkman to cache would create an empty directory, which interferes with the initial installation
- "[[ -d $HOME/.sdkman/bin/ ]] || rm -rf $HOME/.sdkman/"
- curl -sL https://get.sdkman.io | bash
- echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config
- source "$HOME/.sdkman/bin/sdkman-init.sh"

install:
- sdk install java $(sdk list java | grep -o "$ZULUJDK\.[0-9\.]*-zulu" | head -1)
- unset JAVA_HOME
jdk:
- oraclejdk8
- openjdk7

cache:
directories:
- "$HOME/.m2/repository"
- "$HOME/.m2/wrapper"
- $HOME/.m2
- $HOME/.m2/wrapper

install: true

script:
- travis_wait 30 ./mvnw --batch-mode --no-transfer-progress clean install -DskipTests=false -Dcheckstyle.skip=false -Drat.skip=false -Dmaven.javadoc.skip=true

after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash)

0 comments on commit 5c5ac0a

Please sign in to comment.