Skip to content

Commit

Permalink
Fix build issues on travis-ci (openjdk7 SSL/_JAVA_OPTIONS)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Sep 15, 2017
1 parent 068e573 commit 722106b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: java

sudo: false # run on container-based infrastructure


before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/user-id.txt.lock
Expand All @@ -15,8 +16,9 @@ cache:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

dist: precise # downgrade to avoid jdk7 SSL Bug https://github.com/docker-library/openjdk/issues/117
jdk:
- openjdk7
- oraclejdk7 # openjdk7 has SSL Bug avoid jdk7 SSL Bug https://github.com/docker-library/openjdk/issues/117
- oraclejdk8

env:
Expand All @@ -33,6 +35,10 @@ env:

install: true

# Undo _JAVA_OPTIONS environment variable (https://github.com/travis-ci/travis-ci/issues/8408)
before_script:
- _JAVA_OPTIONS=

script:
- ./gradlew --no-daemon --version
- ./gradlew --no-daemon travisCiBuild -Dvariant=$VARIANT -Dscan
Expand Down

0 comments on commit 722106b

Please sign in to comment.