Skip to content

Commit

Permalink
Switch to Oracle JDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
jose committed Nov 28, 2018
1 parent 6bbe356 commit 272a52d
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .travis.yml
Expand Up @@ -2,17 +2,25 @@ language: perl
perl:
- "5.24"

jdk:
- openjdk7
os: linux

addons:
apt:
packages:
- openjdk-7-jdk
cache:
directories:
- /home/travis/.java/

before_install:
- JDK_OS="$TRAVIS_OS_NAME"
- JDK_ARCH="x64"
- JDK_VERSION="7u80"
- JDK_BUILD_VERSION="$JDK_VERSION-b15"
- JDK_FILE="jdk-$JDK_VERSION-$JDK_OS-$JDK_ARCH.tar.gz"
- JDK_URL="http://people.cs.umass.edu/~rjust/defects4j/download/$JDK_FILE";
- if [ ! -f "$JDK_FILE" ]; then mkdir -p /home/travis/.java && wget -nv "$JDK_URL" && tar -xzf "$JDK_FILE" -C /home/travis/.java; fi

install:
- jdk_switcher use openjdk7
- export JAVA_HOME=/home/travis/.java/jdk1.7.0_80
- export PATH=$JAVA_HOME/bin:$PATH
- java -version
- (echo y;echo o conf prerequisites_policy follow;echo o conf commit) | cpan
- cpan install Carton
- carton install
Expand Down Expand Up @@ -55,7 +63,7 @@ jobs:
- script: carton exec ./test_verify_bugs.sh -p Math -b20..54
- script: carton exec ./test_verify_bugs.sh -p Math -b55..80
- script: carton exec ./test_verify_bugs.sh -p Math -b81..106
## Mockito
# Mockito
- script: carton exec ./test_verify_bugs.sh -p Mockito -b1..5
- script: carton exec ./test_verify_bugs.sh -p Mockito -b6..10
- script: carton exec ./test_verify_bugs.sh -p Mockito -b11..15
Expand Down

0 comments on commit 272a52d

Please sign in to comment.