]> rtime.felk.cvut.cz Git - jailhouse.git/blob - .travis.yml
ci: Add Coverity scan
[jailhouse.git] / .travis.yml
1 #
2 # Jailhouse, a Linux-based partitioning hypervisor
3 #
4 # Copyright (c) Siemens AG, 2014
5 #
6 # Authors:
7 #  Jan Kiszka <jan.kiszka@siemens.com>
8 #
9 # This work is licensed under the terms of the GNU GPL, version 2.  See
10 # the COPYING file in the top-level directory.
11 #
12
13 language: c
14
15 compiler:
16   - gcc
17
18 env:
19   global:
20    - secure: "HeNK8vFhW6656FoEc05SWwjorvMZWkUTIioHBJoX+s59uQ6MlgyPNnro8FrrcX/fNWLDNRrzl9U05423JVMWwjOuov6MgShDJkG/imadVO8Y+ZIsKdefAp/DsUhIhsnRNh8+bxUStdFAVatMvPf/ZWuEk0K3BC95yWK1VXE73ZQ="
21
22
23 install:
24   - echo "deb http://archive.ubuntu.com/ubuntu utopic main restricted" | sudo tee -a /etc/apt/sources.list
25   - sudo apt-get update -qq
26   - sudo apt-get install -qq python-mako gcc-arm-linux-gnueabihf make
27   - cd ci
28   - wget -q http://www.kiszka.org/downloads/travis-ci/kernel-build.tar.xz
29   - tar xJf kernel-build.tar.xz
30   - cd ..
31
32 script:
33   - cp ci/jailhouse-config-x86.h hypervisor/include/jailhouse/config.h
34   - make KDIR=ci/linux/build-x86
35   - cp ci/jailhouse-config-banana-pi.h hypervisor/include/jailhouse/config.h
36   - make KDIR=ci/linux/build-banana-pi ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- clean all
37   - cp ci/jailhouse-config-vexpress.h hypervisor/include/jailhouse/config.h
38   - make KDIR=ci/linux/build-vexpress ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- clean all
39
40 addons:
41   coverity_scan:
42     project:
43       name: "siemens/jailhouse"
44       description: "Build submitted via Travis CI"
45     notification_email: jan.kiszka@siemens.com
46     build_command_prepend: "cp ci/jailhouse-config-x86.h hypervisor/include/jailhouse/config.h"
47     build_command:   "make KDIR=ci/linux/build-x86"
48     branch_pattern: coverity_scan