+dist: trusty
sudo: false
language: cpp
-compiler:
- - gcc
+cache: ccache
addons:
apt_packages:
- - ccache
- libboost-all-dev
- flex
- bison
- libmysqlclient-dev
- libedit-dev
- libyajl-dev
+ - libwxbase3.0-dev
+ - libwxgtk3.0-dev
before_script:
- mkdir build
- cd build
- - export PATH="/usr/lib/ccache:$PATH"
- - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/tmp/icinga2
+ - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/tmp/icinga2 -DICINGA2_PLUGINDIR=/tmp/icinga2/sbin
script:
- - make && make test && make install && /tmp/icinga2/sbin/icinga2 --version
+ - make
+ - make test
+ - make install
+ - /tmp/icinga2/sbin/icinga2 --version
+ - /tmp/icinga2/sbin/icinga2 daemon -C -DRunAsUser=$(id -u -n) -DRunAsGroup=$(id -g -n)