Permalink
Browse files

CI: Work around missing cryptography in Travis CI's openjdk7 (see gra…

  • Loading branch information...
eseifert committed Sep 21, 2017
1 parent c24e08a commit d49d395792c86b9b52f5fa75b1578b6043bf4fd3
Showing with 3 additions and 4 deletions.
  1. +3 −4 .travis.yml
View
@@ -10,10 +10,9 @@ before_install:
- sudo add-apt-repository ppa:cwchien/gradle -y
- sudo apt-get update -q
- sudo apt-get install gradle -y
- sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}"/jre/lib/ext && \
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 \
: # Work around missing crypto in openjdk7
- sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}"/jre/lib/ext
- 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
- export PATH=/usr/bin:$PATH # Use gradle from /usr/bin
- gradle --version

0 comments on commit d49d395

Please sign in to comment.