-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
46 lines (45 loc) · 2.12 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
# Copyright (c) Intel Corporation
# Copyright (c) 2017
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cache:
directories:
- $HOME/.m2
sudo: false
language:
- java
jdk:
- oraclejdk8
git:
depth: 99999
addons:
apt:
packages:
- oracle-java8-installer
install:
true
addons:
sonarcloud:
organization: "opensecuritycontroller-org"
token:
secure: "X/KPYRG0wxmhj3vLdCsqbBcyMkCwRn3E2ah9iY6Gq23/WSZKlfOfZsDSUpaRGRJyUatTh78VNJ14S1ToAw70P+9g0y1bpQIG/i1ZXHkvdsh1zubcmMLPKlE0yKNa1oi64JiJmoDXPCG9g1P+PuqT8H3dr5H8gKkUaIBPzcrDPf872L+PO5a+uCOWC0UpJ8Wl2WPlDBQDSjIO8omMnOHyBf1wy0XTGjpRGNC/QT1HmgOUZ9D3IjUSs4NFZvlsvQRFC+yc1M3ztGFrs5LDcyG5dCvJVr8anL5RZKF2N79xaHXOtwKrt3a6GzJs8iGOTF6Zu0xkLPsWfxCIi09AO7eARkb1pQTJ0oVWnUJNMb9JsYlfMHQVQDRsimc4jif+WvU40ZcsALTj4wZYi79afRKls3hU0Q/x5Oi8HpRYKFe1bmdMLpS1s5L0qPZFa1HprpyUpQHF1yHJ1wEkaGVIo2d/v3IskPzt9EndMqxD7FiQKq3Qg5DYtB2v7mfUIO1vEcraoBTJhdgsMfZyxyAvr25wXCJPFcLh59yVd6YpjmZPbaSt8xuc26Jh8OSPPWCc7iEL8vYpF6dKibPMgdIBw7FOcsQKtyQ0vj2yYVAAXN+t0E2u1gJolBrcbt8/XQLlVWB6P4MdaYR9rAFVbKpcSPUhzlh319f7NSZoiA0AIIF1+RY="
script:
# the following command line builds the project, executes the SonarCloud analysis
- if [[ -n "${TRAVIS_PULL_REQUEST_SLUG}" || "$(cut -d'/' -f1 <<<${TRAVIS_REPO_SLUG})" != opensecuritycontroller ]]; then
echo "Skipping sonar analysis as this is a pull request or a build of a fork";
mvn org.jacoco:jacoco-maven-plugin:prepare-agent install org.jacoco:jacoco-maven-plugin:report;
else
mvn org.jacoco:jacoco-maven-plugin:prepare-agent install org.jacoco:jacoco-maven-plugin:report sonar:sonar;
fi
after_success:
- bash <(curl -s https://codecov.io/bash)