-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
54 lines (50 loc) · 2.45 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: java
jdk:
- oraclejdk11
- oraclejdk9
- oraclejdk8
- openjdk12
- openjdk11
- openjdk10
- openjdk9
- openjdk8
matrix:
include:
- jdk: openjdk7
sudo: required
before_install: # Work around missing crypto in openjdk7
- wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/gcc-5-base_5.4.0-6ubuntu1~16.04.10_amd64.deb
- wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libgomp1_5.4.0-6ubuntu1~16.04.10_amd64.deb
- wget http://archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libtinfo5_6.0+20160213-1ubuntu1_amd64.deb
- wget http://archive.ubuntu.com/ubuntu/pool/main/g/gettext/gettext_0.19.7-2ubuntu3.1_amd64.deb
- sudo dpkg -i gcc-5-base_5.4.0-6ubuntu1~16.04.10_amd64.deb
- sudo dpkg -i libgomp1_5.4.0-6ubuntu1~16.04.10_amd64.deb
- sudo dpkg -i libtinfo5_6.0+20160213-1ubuntu1_amd64.deb
- sudo dpkg -i gettext_0.19.7-2ubuntu3.1_amd64.deb
- export JAVA7_HOME=$(jdk_switcher home openjdk7)
- sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}/jre/lib/ext/bcprov-ext-jdk15on-158.jar"
- sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
- echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
install:
- export TARGET_JAVA_HOME=$JAVA_HOME
- jdk_switcher use oraclejdk8
- ./gradlew assemble
allow_failures:
- jdk: openjdk12
before_install:
- wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/gcc-5-base_5.4.0-6ubuntu1~16.04.10_amd64.deb
- wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libgomp1_5.4.0-6ubuntu1~16.04.10_amd64.deb
- wget http://archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libtinfo5_6.0+20160213-1ubuntu1_amd64.deb
- wget http://archive.ubuntu.com/ubuntu/pool/main/g/gettext/gettext_0.19.7-2ubuntu3.1_amd64.deb
- sudo dpkg -i gcc-5-base_5.4.0-6ubuntu1~16.04.10_amd64.deb
- sudo dpkg -i libgomp1_5.4.0-6ubuntu1~16.04.10_amd64.deb
- sudo dpkg -i libtinfo5_6.0+20160213-1ubuntu1_amd64.deb
- sudo dpkg -i gettext_0.19.7-2ubuntu3.1_amd64.deb
- export JAVA7_HOME=$(jdk_switcher home openjdk7)
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/