Skip to content

Commit aeb39e0

Browse files
committed
fix Travis-CI config for JDK 6
1 parent a093e1d commit aeb39e0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.travis.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# opt-in to Travis's newer/faster container-based infrastructure
2-
sudo: false
3-
41
language: scala
52

3+
# Needed for openjdk6
4+
dist: precise
5+
sudo: required
66
addons:
7-
apt:
8-
packages:
9-
- openjdk-6-jdk
7+
hosts:
8+
- localhost
9+
hostname: localhost.local
1010

1111
jdk:
1212
- openjdk6
@@ -19,6 +19,9 @@ cache:
1919
- $HOME/.sbt/launchers
2020

2121
script:
22+
# work around https://github.com/travis-ci/travis-ci/issues/9713
23+
- if [[ $JAVA_HOME = *java-6* ]]; then jdk_switcher use openjdk6; fi
24+
- java -version
2225
- sbt test
2326

2427
before_cache:

0 commit comments

Comments
 (0)