source: .travis.yml @ a02cccaa

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

Only use SonarQube? with Java 8

It fails on Java 7, and is unsupported on Java 9.

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