source: .travis.yml @ 2c4ecb7

Last change on this file since 2c4ecb7 was 28f31ae, checked in by str4d <str4d@…>, 3 years ago

Fix .travis.yml syntax

  • Property mode set to 100644
File size: 1.4 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_install:
21 - |
22    if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
23      sed -i "1iplugins {\n    id 'org.sonarqube' version '2.6.1'\n}\n" build.gradle
24    fi
25
26before_cache:
27  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
28  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
29cache:
30  directories:
31    - $HOME/.gradle/caches/
32    - $HOME/.gradle/wrapper/
33    - $HOME/.sonar/cache/
34    - .gradle
35
36script:
37  - |
38    if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
39      ./gradlew sonarqube codeCoverageReport
40    else
41      ./gradlew check codeCoverageReport
42    fi
43
44after_success:
45  - bash <(curl -s https://codecov.io/bash)
46
47notifications:
48  irc:
49    channels:
50      - "chat.freenode.net#i2p-dev"
51    on_success: change
52    on_failure: always
Note: See TracBrowser for help on using the repository browser.