forked from siemens/jailhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (54 loc) · 1.88 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
#
# Jailhouse, a Linux-based partitioning hypervisor
#
# Copyright (c) Siemens AG, 2014-2019
#
# Authors:
# Jan Kiszka <[email protected]>
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
#
language: c
dist: bionic
compiler:
- gcc
addons:
apt:
packages:
- python-mako
- gcc-8
- gcc-8-arm-linux-gnueabihf
- libc6-dev-armhf-cross
- gcc-8-aarch64-linux-gnu
- libc6-dev-arm64-cross
coverity_scan:
project:
name: "siemens/jailhouse"
notification_email: [email protected]
build_script_url: https://raw.githubusercontent.com/$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH/ci/coverity-scan-build.sh
build_command_prepend: "cov-configure --comptype gcc --compiler arm-linux-gnueabihf-gcc --template; cov-configure --comptype gcc --compiler aarch64-linux-gnu-gcc --template"
build_command: "unused"
branch_pattern: coverity_scan.*
install:
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800
- sudo update-alternatives --install /usr/bin/aarch64-linux-gnu-gcc aarch64-linux-gnu-gcc /usr/bin/aarch64-linux-gnu-gcc-8 800
- sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gcc /usr/bin/arm-linux-gnueabihf-gcc-8 800
# Work around broken certificate of scan.coverity.com
- sudo curl -s -L https://entrust.com/root-certificates/entrust_l1k.cer -o /usr/local/share/ca-certificates/entrust_l1k.crt
- sudo update-ca-certificates
# Install kernel build environment if it's not in the cache
- if [ ! -L ci/linux ]; then
pushd ci;
wget http://www.kiszka.org/downloads/travis-ci/kernel-build.tar.xz;
tar xJf kernel-build.tar.xz;
popd;
fi
cache:
directories:
- ci/linux
- ci/linux-4.13
script:
- if [ ${COVERITY_SCAN_BRANCH} != 1 ];
then ci/build-all-configs.sh;
fi