source: .travis.yml @ 71dbc0a

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

Only call SonarQube? once per Travis CI build

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