forked from oshi/oshi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (57 loc) · 1.96 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: java
before_install:
# When building the coverity_scan branch, allow only the first job to continue.
- if [[ "${TRAVIS_BRANCH}" == "coverity_scan" && "$MATRIX_ID" != "first" ]]; then exit 0; fi
# Get most recent JDK versions on-the-fly
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
- if [ "$MATRIX_ID" == "first" ]; then
./mvnw clean test jacoco:report coveralls:report;
./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar;
fi
env:
global:
# COVERITY_SCAN_TOKEN
- secure: "JuTWT2u7BWQEJGMGkVvQMIQxwxajntxqbCGYt+bJD3JQhioPVFUJoEFrLCx+jJ0qLy5usrneCDFrvRhvTh6C+95kvHypvGQ3UoeWyXS8zD+GRPUyskbuQ7P60kqqIqc+naGd3uyGddniixoAA6C/Ptmknhls4FlhDCMjW3HDS0c="
addons:
coverity_scan:
project:
name: "dblock/oshi"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "cov-configure --comptype gcc --compiler gcc-4.8 --template"
build_command: "./mvnw -DskipTests=true clean compile"
branch_pattern: coverity_scan
sonarcloud:
organization: "default" # the key of the open source org
hosts:
- oshi
hostname: oshi
matrix:
include:
- os: linux
jdk: oraclejdk8
env:
- JDK = "Oracle JDK 8 - Linux"
- MATRIX_ID="first"
- os: linux
install: . ./install-jdk.sh -F 11 -L BCL
env: JDK = "Oracle JDK 11 - Linux"
# - os: linux
# install: . ./install-jdk.sh -F 12 -L GPL
# env: JDK = "OpenJDK 12 - Linux"
# - os: linux
# install: . ./install-jdk.sh -F 12 -L GPL
# env: JDK = "OpenJDK 13-ea - Linux"
- os: osx
env: JDK = "Oracle JDK 8 - Mac"
osx_image: xcode9.3
- os: osx
env: JDK = "OpenJDK 11 - Mac"
osx_image: xcode10.1
script:
# Skip tests on coverity_scan branch
- if [[ "${TRAVIS_BRANCH}" == "coverity_scan" ]]; then exit 0; fi
- java -version
- mvn test