-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
44 lines (43 loc) · 1.91 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: "wai62O44fsesw24Y97AdrxyQ/ykLEp3hxyHd9BfVXOKw7jjBEZZFpAL3OtXjLc198hta7Ne5bFaduXw3D3RgdBNazrY20vliHmkIn+JY/fzcbdRTIogGcXSaRJeBeUMnDj1KXX2VWan2X8ibTwumTHrySowDOPCSNlMuflbA6BtmZkheC9zZK6XiQYDDd5f+Deg6eMt3sjzXVEkIWLn/0zvTjJzP0yiE2dRe4QzOCCrJvSsF/pPVAJ+HyVgt4LAhol5QyR56u5+fQYMc98k8y8pElZkXkA3bwj6tc/jteVu8oy6zZLWhYLbu1jXyaNTE/+iofyv1EXnzDxZas0GipoTYGXrjZ7rd6aOBAv81p4+ZAEmg5LIdC1yM34F/tDf48kIAmmruxB7aZtUvsNj7XcdmPBCFQDKOxZ6O98XkB8R5/WibeaYzUcOSiAF8FT6x6x69Hf8vcIkIAvEsrilO+EfOzehtV/V6ktVPhPYV5m+FVNIRBLLSp1i/auUi7pnI4NE3ubm+PYpdguyOTbDi6Q5hVd+w5r/GLimEBLpkyKwlDbUKGjs07dZb+e53HfTlqZUNnN1Wc+PEsCrFYlVMVdZ87cMtaiXlXln749ni4uqBz+Pteqy9iildYpnXpdG4KBJXmY+ZXEDfg+BSv7nAzblC3jFzkMGxWQdI45krivk="
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