-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
44 lines (43 loc) · 1.9 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
# 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: "tQO8DFrNr9qM7r2upu4lb/tMQT2R3SH/OrVyPxgQEDsngqlPUrReoduZYuSc/JUmN0TQJjd6fq3429Pv1cPLeJ66U80yJIcdZmYb97Z1rUmqc0miN+k2ITHJ1BL5LVL/lyV4rDX+ABLJ1H3WPOZyRlV4utZQ8GAWhJxUgsNqDxvejvFqAaM/TQySMlnVRniDov2muTrc5b/BWrJbRDlLG3C/USEtjqAoY7qxjJmgNCPIdQtvjaG1Yyi2TLal3iFS90Wr5aX3iyqpWd08DOBjfr/I5hmIpI6p7xtV+LjA2nLxGJWgnuo9nKASkjJhXBNAG8QWvHeOi7/JhD9zwGO/4jfiKNmmA3OFDpizL8mm7X3OLwxROgihwV5STseXzp6QArvynzNNkoH3DRqLcCvMDpfX6B86u8q0LK4cpRJPGQXPo6R1CAyjfrcU3FgmBFk0BS+QECQA6blodG/vNhWU7Kj7wpMw+7Wc+Gcf5dOp9ops0TZmI57Cjv5qrEMfIUsW+zprZzcUJG6gnTi434+ggWg1EsDQ61aM4jiYqSfWenq/d9ChdzK1ug/VZiE8VhqHbBwQbmp+5VuQ8nUQ6imOuCNWXb7D2sGd4yDmxTlhq3YwaBueYf3s4pyp10Kct50lg6mXzj4wjZlf/w72Gq8vnc8ZM/w/KwCxKv7Ux+Yxpp8="
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 install;
else
mvn install sonar:sonar;
fi