-
Notifications
You must be signed in to change notification settings - Fork 381
/
.travis.yml
56 lines (51 loc) · 1.14 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
language: c
os: linux
dist: bionic
arch:
- arm64
- ppc64le
- amd64
addons:
sonarcloud:
organization: "openscap"
apt:
packages:
- lcov
- libdbus-1-dev
- libdbus-glib-1-dev
- libcurl4-openssl-dev
- libgcrypt-dev
- libselinux1-dev
- libgconf2-dev
- libacl1-dev
- libblkid-dev
- libcap-dev
- libxml2-dev
- swig
- libxml-parser-perl
- libxml-xpath-perl
- libperl-dev
- librpm-dev
- swig
- librtmp-dev
- xsltproc
- rpm-common
- lua50
- libxmlsec1-dev
- libxmlsec1-openssl
cache:
directories:
- '$HOME/.sonar/cache'
before_script:
- cd build
script:
- cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../
# The build-wrapper tool won't work on forked repositories.
- case ${TRAVIS_CPU_ARCH} in
amd64) build-wrapper-linux-x86-64 --out-dir bw-output make all || make all ;;
arm64) build-wrapper-linux-aarch64 --out-dir bw-output make all || make all ;;
*) make all ;;
esac
- ctest --output-on-failure
# Will always fail builds on forked repositories.
- (cd .. && sonar-scanner) || true