source: .travis.yml @ c36905a

Last change on this file since c36905a was c36905a, checked in by str4d <str4d@…>, 2 years ago

Travis CI: Use BouncyCastle? as a SecurityProvider? for OpenJDK 7

Workaround for travis-ci/travis-ci#8503, gradle/gradle#2421.
Solution taken from bugsnag/bugsnag-java#66.

  • Property mode set to 100644
File size: 800 bytes
Line 
1language: java
2
3jdk:
4  - oraclejdk9
5  - oraclejdk8
6  - openjdk8
7
8matrix:
9  include:
10    - jdk: openjdk7
11      sudo: required
12      before_install: # Work around missing crypto in openjdk7
13        - sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}/jre/lib/ext/bcprov-ext-jdk15on-158.jar"
14        - sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
15        - echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
16
17before_cache:
18  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
19  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
20cache:
21  directories:
22    - $HOME/.gradle/caches/
23    - $HOME/.gradle/wrapper/
Note: See TracBrowser for help on using the repository browser.