Skip to content
Permalink
Browse files
Install Oracle JDK 8 under $HOME, without sudo
  • Loading branch information
BanzaiMan committed Dec 17, 2014
1 parent 4f118d9 commit 4c676a0d5fa8cfbe94ff98dea6b05abdfa3f3bf2
Showing with 10 additions and 2 deletions.
  1. +10 −2 .travis.yml
@@ -2,7 +2,6 @@ language: java
before_script:
- unset GEM_PATH GEM_HOME IRBRC JRUBY_OPTS
- "export PATH=`pwd`/bin:$PATH"
- "export JAVA_OPTS='-XX:+TieredCompilation -XX:TieredStopAtLevel=1'"
- echo $HOME

jdk: openjdk7
@@ -22,6 +21,7 @@ env:
matrix:
- PHASE='-Ptest'
- PHASE='-Prake -Dtask=test:jruby'
- TRAVIS_JDK_VERSION=oraclejdk8 PHASE='-Prake -Dtask=test:jruby'
- PHASE='-Prake -Dtask=test:mri'
- PHASE='-Prake -Dtask=test:slow_suites'
- PHASE='-Prake -Dtask=test:tracing'
@@ -56,9 +56,17 @@ branches:
- master
- jruby-1_7
- /^test-.*$/
- /^ha-feature/

before_install:
- if [[ $TRAVIS_JDK_VERSION = 'oraclejdk8' ]]; then sudo apt-get update; sudo apt-get install oracle-java8-installer; else true; fi
- 'if [[ $TRAVIS_JDK_VERSION = "oraclejdk8" ]]; then
curl -O -j -k -L -H "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz
tar xzf jdk-8u25-linux-x64.tar.gz
export JAVA_HOME=jdk1.8.0_25
export PATH=$JAVA_HOME/bin:$PATH
else
true
fi'

script: if [[ -v COMMAND ]]; then $COMMAND; else travis_retry mvn -q -Pbootstrap clean package ; mvn install -Dinvoker.skip=false $PHASE | egrep -v 'Download|\\[exec\\] [[:digit:]]+/[[:digit:]]+|^[[:space:]]*\\[exec\\][[:space:]]*$' ; [ ${PIPESTATUS[0]} == 0 ]; fi
install: /bin/true

0 comments on commit 4c676a0

Please sign in to comment.