source: .travis.yml @ ff71540

Last change on this file since ff71540 was 5f01796, checked in by str4d <str4d@…>, 13 months ago

Travis CI: Run tests against OpenJDK 12

  • Property mode set to 100644
File size: 1.8 KB
Line 
1language: java
2
3jdk:
4  - oraclejdk11
5  - oraclejdk9
6  - openjdk12
7  - openjdk11
8  - openjdk10
9  - openjdk9
10
11matrix:
12  include:
13    - jdk: oraclejdk8
14      addons:
15        sonarcloud:
16          organization: "i2p"
17      before_install:
18        - export JAVA7_HOME=$(jdk_switcher home openjdk7)
19        - sed -i "1iplugins {\n    id 'org.sonarqube' version '2.6.1'\n}\n" build.gradle
20    - jdk: openjdk8
21      before_install:
22        - export JAVA7_HOME=$(jdk_switcher home openjdk7)
23    - jdk: openjdk7
24      sudo: required
25      before_install: # Work around missing crypto in openjdk7
26        - export JAVA7_HOME=$(jdk_switcher home openjdk7)
27        - sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}/jre/lib/ext/bcprov-ext-jdk15on-158.jar"
28        - sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
29        - echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
30      install:
31        - export TARGET_JAVA_HOME=$JAVA_HOME
32        - jdk_switcher use oraclejdk8
33        - ./gradlew assemble
34  allow_failures:
35    - jdk: openjdk12
36
37before_cache:
38  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
39  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
40cache:
41  directories:
42    - $HOME/.gradle/caches/
43    - $HOME/.gradle/wrapper/
44    - $HOME/.sonar/cache/
45    - .gradle
46
47script:
48  - |
49    if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
50      ./gradlew sonarqube codeCoverageReport
51    else
52      ./gradlew check codeCoverageReport
53    fi
54
55after_success:
56  - bash <(curl -s https://codecov.io/bash)
57
58notifications:
59  irc:
60    channels:
61      - "chat.freenode.net#i2p-dev"
62    on_success: change
63    on_failure: always
Note: See TracBrowser for help on using the repository browser.