forked from libvmi/libvmi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (57 loc) · 1.69 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
60
61
os: linux
dist: bionic
language: c
# install libkvmi for all tests
before_install:
# install in /tmp/libkvmi to avoid breaking astyle test
- git clone --depth=2 https://github.com/libvmi/libkvmi /tmp/libkvmi
- pushd /tmp/libkvmi
- ./bootstrap
- ./configure
- make
- sudo make install
- popd
- rm -rf /tmp/libkvmi
jobs:
include:
#
# Coverity
#
- if: branch = master
env:
- TEST="Coverity"
compiler: gcc
addons:
coverity_scan:
project:
name: "$COVERITY_PROJECT"
description: "Build submitted via Travis CI"
notification_email: $COVERITY_EMAIL
build_command_prepend: "mkdir build; cd build; cmake .."
build_command: "make"
branch_pattern: $COVERITY_BRANCH
install:
- sudo apt-get update
- sudo apt-get -q -y install bison flex autoconf-archive libjson-c-dev libvirt-dev libxen-dev libfuse-dev
script:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
#
# SonarCloud
#
- if: branch = master
env:
- TEST="SonarCloud"
dist: xenial
compiler: clang
addons:
sonarcloud:
organization: "libvmi"
token: "$SONAR_SCAN_TOKEN"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi'
- sudo apt-get update
- sudo apt-get -q -y install bison flex autoconf-archive libjson-c-dev libvirt-dev libxen-dev libfuse-dev
- autoreconf -vif
- ./configure
- build-wrapper-linux-x86-64 --out-dir bw-output make -j2
- sonar-scanner