File: .travis.yml

package info (click to toggle)
openscap 1.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 125,040 kB
  • sloc: xml: 527,109; ansic: 91,390; sh: 19,789; python: 2,515; perl: 444; makefile: 49
file content (56 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download | duplicates (3)
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