Skip to content
Permalink
Browse files

Switch to Oracle JDK.

  • Loading branch information...
jose committed Nov 28, 2018
1 parent 6bbe356 commit 272a52d01e4a7ee1bc94be413f28f6cb8fd19607
Showing with 16 additions and 8 deletions.
  1. +16 −8 .travis.yml
@@ -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
@@ -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

0 comments on commit 272a52d

Please sign in to comment.
You can’t perform that action at this time.