forked from USBGuard/usbguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (100 loc) · 3.44 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
env:
global:
- secure: "mAKqsfksFjBmvtjVEUiUkJ1rG7pp4dGZrTez2SRoEu+bEDh620O931SwBYyWMAdKRNGt9zrV22EASXM9ug1AHboFTOnMM17YCLw/nbioV92EIYV7O+infO9dkGpn0wDVa/jPIiJB++5xeeIF8Lgq7td6wP4jE8WMl97PL5wtEMs="
language: cpp
compiler:
- clang
- gcc
os: linux
dist: trusty
sudo: required
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5']
env: COMPILER=g++-5
- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-6']
env: COMPILER=g++-6
- os: linux
compiler: clang
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8']
packages: ['clang-3.8']
env: COMPILER=clang++-3.8
- os: linux
compiler: gcc
env: COVERAGE=yes CONFIGURE_ARGS="--enable-coverage --disable-shared"
- os: linux
compiler: gcc
env: MAKE_ARGS="distcheck DISTCHECK_CONFIGURE_FLAGS+=--with-bundled-pegtl DISTCHECK_CONFIGURE_FLAGS+=--with-bundled-json DISTCHECK_CONFIGURE_FLAGS+=--with-bundled-spdlog DISTCHECK_CONFIGURE_FLAGS+=--with-bundled-catch"
- os: linux
compiler: clang
addons:
apt:
packages: ['clang']
env: MAKE_ARGS=analyze-clang
- os: linux
compiler: clang
env: CONFIGURE_ARGS=--enable-asan
- os: linux
compiler: gcc
env: CONFIGURE_ARGS=--enable-debug-build
- os: linux
compiler: gcc
addons:
apt:
packages: ['libgcrypt-dev']
env: CONFIGURE_ARGS=--with-crypto-library=gcrypt
- os: linux
compiler: gcc
addons:
apt:
packages: ['pandoc']
env: MAKE_ARGS="distcheck DISTCHECK_CONFIGURE_FLAGS+=--with-bundled-pegtl DISTCHECK_CONFIGURE_FLAGS+=--with-bundled-json DISTCHECK_CONFIGURE_FLAGS+=--with-bundled-spdlog DISTCHECK_CONFIGURE_FLAGS+=--with-bundled-catch"
- os: linux
compiler: gcc
addons:
apt:
packages: ['qtbase5-dev', 'qt5-default', 'qtbase5-dev-tools', 'libqt5svg5-dev']
env: CONFIGURE_ARGS=--with-gui-qt=qt5
- os: linux
compiler: gcc
addons:
apt:
packages: ['libqt4-dev', 'qt4-default', 'qt4-dev-tools', 'libqt4-svg']
env: CONFIGURE_ARGS=--with-gui-qt=qt4
before_install:
- sudo add-apt-repository -y ppa:chris-lea/libsodium
- sudo apt-get -qq update
- sudo apt-get install -y libudev-dev libsodium-dev libqb-dev libcap-ng-dev libseccomp-dev
- sudo apt-get install -y libglib2.0-dev libdbus-glib-1-dev libxml2-utils libpolkit-gobject-1-dev xsltproc
- sudo apt-get install -y lcov
- sudo apt-get install -y language-pack-cs language-pack-de
- sudo apt-get install -y aspell aspell-en
- gem install coveralls-lcov
before_script:
- ./autogen.sh
- mkdir build && cd build
- CXX=$COMPILER ../configure --enable-maintainer-mode --disable-silent-rules --with-bundled-catch --with-bundled-pegtl --with-bundled-json --with-bundled-spdlog $CONFIGURE_ARGS
script:
- test $TRAVIS_BRANCH != coverity_scan || exit 0
- if test -n "$MAKE_ARGS"; then make $MAKE_ARGS; else make all; make check; fi
after_success:
- test "x$COVERAGE" = xyes -a "x$CXX" = "xg++" && lcov --compat-libtool --directory . --capture --output-file coverage.info && coveralls-lcov coverage.info
addons:
coverity_scan:
project:
name: dkopecek/usbguard
notification_email: [email protected]
build_command: make
branch_pattern: coverity_scan