source: .travis.yml @ cbeaca6

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

Travis CI: Run tests against OpenJDK 12

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[2becaaa]1language: java
2
3jdk:
[f9c1396]4  - oraclejdk11
[a02cccaa]5  - oraclejdk9
[5f01796]6  - openjdk12
[f9c1396]7  - openjdk11
8  - openjdk10
9  - openjdk9
[c36905a]10
11matrix:
12  include:
[a02cccaa]13    - jdk: oraclejdk8
[e6d9730]14      addons:
15        sonarcloud:
16          organization: "i2p"
[2556c77]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)
[c36905a]23    - jdk: openjdk7
24      sudo: required
25      before_install: # Work around missing crypto in openjdk7
[2556c77]26        - export JAVA7_HOME=$(jdk_switcher home openjdk7)
[c36905a]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
[2556c77]30      install:
31        - export TARGET_JAVA_HOME=$JAVA_HOME
32        - jdk_switcher use oraclejdk8
33        - ./gradlew assemble
[5f01796]34  allow_failures:
35    - jdk: openjdk12
[7f673bb]36
[1ff9e6e]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/
[f9eaf41]44    - $HOME/.sonar/cache/
45    - .gradle
[5a45882]46
[19016ed]47script:
[71dbc0a]48  - |
[a02cccaa]49    if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
[b8d78ac]50      ./gradlew sonarqube codeCoverageReport
[71dbc0a]51    else
[b8d78ac]52      ./gradlew check codeCoverageReport
[71dbc0a]53    fi
[19016ed]54
55after_success:
56  - bash <(curl -s https://codecov.io/bash)
57
[5a45882]58notifications:
59  irc:
[34b204c]60    channels:
61      - "chat.freenode.net#i2p-dev"
[5a45882]62    on_success: change
63    on_failure: always
Note: See TracBrowser for help on using the repository browser.