Skip to content

Commit b0c193b

Browse files
build: workaround openjdk 7 crypto issue
1 parent 5027b8c commit b0c193b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ jdk:
33
- openjdk6
44
- openjdk7
55
- oraclejdk8
6+
sudo: required
7+
before_install: # Work around missing crypto in openjdk7
8+
- sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}/jre/lib/ext/bcprov-ext-jdk15on-158.jar"
9+
- sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
10+
- echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
11+
612
matrix:
713
allow_failures:
814
# https://github.com/square/okhttp/issues/528

0 commit comments

Comments
 (0)