2019-04-01 15:22:41 +02:00
|
|
|
dist: xenial
|
2015-03-20 08:25:17 +01:00
|
|
|
sudo: false
|
|
|
|
|
2015-03-19 06:53:32 +01:00
|
|
|
language: cpp
|
|
|
|
|
2016-08-27 12:47:39 +02:00
|
|
|
cache: ccache
|
|
|
|
|
2015-03-20 08:25:17 +01:00
|
|
|
addons:
|
2019-04-01 15:22:41 +02:00
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'deb http://packages.icinga.com/ubuntu icinga-xenial main'
|
|
|
|
key_url: 'https://packages.icinga.com/icinga.key'
|
|
|
|
packages:
|
|
|
|
- libboost1.67-icinga-all-dev
|
|
|
|
- flex
|
|
|
|
- bison
|
|
|
|
- libssl-dev
|
|
|
|
- libpq-dev
|
|
|
|
- libmysqlclient-dev
|
|
|
|
- libedit-dev
|
2015-03-19 06:53:32 +01:00
|
|
|
before_script:
|
2019-04-01 15:31:44 +02:00
|
|
|
- arch=$(uname -m)
|
2019-04-01 15:25:19 +02:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2019-04-01 15:31:44 +02:00
|
|
|
- >
|
|
|
|
cmake ..
|
|
|
|
-DCMAKE_BUILD_TYPE=Debug
|
|
|
|
-DICINGA2_UNITY_BUILD=Off
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/tmp/icinga2
|
|
|
|
-DICINGA2_PLUGINDIR=/tmp/icinga2/sbin
|
|
|
|
-DBoost_NO_BOOST_CMAKE=TRUE
|
|
|
|
-DBoost_NO_SYSTEM_PATHS=TRUE
|
|
|
|
-DBOOST_LIBRARYDIR=/usr/lib/${arch}-linux-gnu/icinga-boost
|
|
|
|
-DBOOST_INCLUDEDIR=/usr/include/icinga-boost
|
|
|
|
-DCMAKE_INSTALL_RPATH=/usr/lib/${arch}-linux-gnu/icinga-boost
|
2015-03-19 06:53:32 +01:00
|
|
|
|
|
|
|
script:
|
2019-04-01 15:25:19 +02:00
|
|
|
- make
|
|
|
|
- make test
|
|
|
|
- make install
|
|
|
|
- /tmp/icinga2/sbin/icinga2 --version
|
|
|
|
- /tmp/icinga2/sbin/icinga2 daemon -C -DRunAsUser=$(id -u -n) -DRunAsGroup=$(id -g -n)
|