forked from opensecuritycontroller/osc-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
59 lines (54 loc) · 2.64 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
# 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
- $HOME/build/opensecuritycontroller/osc-core/osc-server-bom/Sources/
sudo: false
services:
- docker
language:
- java
jdk:
- oraclejdk8
git:
depth: 99999
addons:
apt:
packages:
- oracle-java8-installer
- unzip
#Issue with BND tools, see https://github.com/bndtools/bndtools/issues/1294
before_install:
- mkdir -p $HOME/.bnd/default-ws/cnf/cache/3.3.0/bnd-cache/biz.aQute.launcher
- wget -O $HOME/.bnd/default-ws/cnf/cache/3.3.0/bnd-cache/biz.aQute.launcher/biz.aQute.launcher-3.3.0.jar http://central.maven.org/maven2/biz/aQute/bnd/biz.aQute.launcher/3.3.0/biz.aQute.launcher-3.3.0.jar
install:
true
addons:
sonarcloud:
organization: "opensecuritycontroller-org"
token:
secure: "Xn/0H8skbWNMuZOj26JxmFvd0NpRdXgeCRFKOkvMTy1fYM2MOmz/QDmi8TYCtrSafrt0sU2F89mNbx6cp8B8J/aI/jZhgqEZyq4ZsRBrqozJFaUZHvB9I0Tiq2babV5e+NXjLnux9gajhZII4zolb3nG1Dz6vxwKe0+KBGocQ5DMm7LeNnHgqfb5FvVpnYlAP+jeEUX81cKeJ+CQSOhB8BUhC7QIMnzjsUAtOL3r009hGGE6oSYfzmCqu+cBfxcCNr6VLqd93Y33PyIvF3r0BiLD7CUWF+zHcopi/JGeox55U/Cav56PnFb1D8ksw82puPIdjQm5gP5mUWBTfglJehRf2vBjvKdDFpO8+XVgyN1w+a63eaqNlgQCg7kzrXHdvRhErsXZPCvZk+MXMN5vqkx2MZCp08qNZPNZs3rf150yLkSUnVKPsxGBRUKnDs9cFAr4mC7+A5jZXfgPFR85nBXHE9ls2j70Ze/SljBfFp5ed/HHVyjFUsgSUtck39CogXDY1g+lwst4kE/b2pKQq4E1EWoFO6Ac4l9R5Zk5huTj10lT7vIipFnp4jLMIH4meJ6vQsjkAI2MABN9szv0EQnsVl2nf1T8AIHf/5IgGAFznLxgGcWorFlStfKrSieapGmYqO0K0ccdQhwhMxdoB5Us2rOeuIgLx2eZGnqZtnA="
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
- ant dockerImageBuild
after_success:
- bash <(curl -s https://codecov.io/bash)