Skip to content

Commit

Permalink
Fix Travis-CI to use openjdk6
Browse files Browse the repository at this point in the history
- make download Maven (via mvnw) using http instead of https
- apply Azul Zulu OpenJDK 6 using Jabba
  • Loading branch information
roundrop committed Aug 16, 2018
1 parent 40f3ddd commit 32e98b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.2.1/apache-maven-3.2.1-bin.zip
distributionUrl=http://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.2.1/apache-maven-3.2.1-bin.zip
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
language: java
addons:
apt:
packages:
- openjdk-6-jdk
jdk:
- openjdk6
cache:
directories:
- $HOME/.m2
env:
global:
- [email protected]
- JABBA_HOME=/home/travis/.jabba
before_install:
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
install:
- $JABBA_HOME/bin/jabba install $TRAVIS_JDK && export JAVA_HOME="$JABBA_HOME/jdk/$TRAVIS_JDK" && export PATH="$JAVA_HOME/bin:$PATH" && java -Xmx32m -version
before_script:
- unset _JAVA_OPTIONS
- echo "debug=false" >> facebook4j-core/src/test/resources/test.properties && echo "oauth.appId=1" >> facebook4j-core/src/test/resources/test.properties && echo "oauth.appSecret=1" >> facebook4j-core/src/test/resources/test.properties && echo "oauth.accessToken=access_token" >> facebook4j-core/src/test/resources/test.properties
after_success:
- ./mvnw -pl facebook4j-core clean cobertura:cobertura org.eluder.coveralls:coveralls-maven-plugin:cobertura
cache:
directories:
- $HOME/.m2
- $HOME/.jabba/jdk

0 comments on commit 32e98b7

Please sign in to comment.