]> granicus.if.org Git - icinga2/blob - .travis.yml
Merge branch 'support/2.8'
[icinga2] / .travis.yml
1 dist: trusty
2 sudo: false
3
4 language: cpp
5
6 cache: ccache
7
8 env:
9   global:
10    # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
11    #   via the "travis encrypt" command using the project repo's public key
12    - secure: "eOnFdiRhB7VUZY7Of4Ff0px93HRWGcD4fXCPiy8V2OC2ER98CYCVw7PKt2Is6i/yTveFTps1kObOo0T03aUT8y/xeBy/wMuJYk1d6mVgmSXOjxcxjQVTUh4J+xB+k/R6FoP2dirNDbvSayCj9Fi9toN9hQHMM8oAZOZfiKmYTJc="
13
14 before_install:
15       - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
16
17 addons:
18   apt_packages:
19     - libboost-all-dev
20     - flex
21     - bison
22     - libssl-dev
23     - libpq-dev
24     - libmysqlclient-dev
25     - libedit-dev
26     - libyajl-dev
27     - libwxbase3.0-dev
28     - libwxgtk3.0-dev
29   coverity_scan:
30     project:
31       name: "Icinga/icinga2"
32     notification_email: icinga2@icinga.com
33     build_command_prepend: "cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/tmp/icinga2 -DICINGA2_PLUGINDIR=/tmp/icinga2/sbin -DICINGA2_UNITY_BUILD=ON"
34     build_command: "make -j 2"
35     branch_pattern: coverity_scan
36
37 before_script:
38   - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then
39       mkdir build;
40       cd build;
41       cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/tmp/icinga2 -DICINGA2_PLUGINDIR=/tmp/icinga2/sbin;
42     fi
43
44 script:
45   - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then
46       make;
47       make test;
48       make install;
49       /tmp/icinga2/sbin/icinga2 --version;
50       /tmp/icinga2/sbin/icinga2 daemon -C -DRunAsUser=$(id -u -n) -DRunAsGroup=$(id -g -n);
51     fi