From 275b488309db777dec764ce6249c38f6c7c27670 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 20 Mar 2015 08:25:17 +0100 Subject: [PATCH] Use container-based builders for Travis CI --- .travis.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8c20acf7c..03ff00591 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,27 @@ +sudo: false + language: cpp compiler: - gcc -before_install: - - sudo apt-get update -qq - - sudo apt-get install libboost-all-dev flex bison libssl-dev libpq-dev libmysqlclient-dev libedit-dev libyajl-dev +addons: + apt_packages: + - ccache + - libboost-all-dev + - flex + - bison + - libssl-dev + - libpq-dev + - libmysqlclient-dev + - libedit-dev + - libyajl-dev before_script: - mkdir build - cd build - - cmake .. + - export PATH="/usr/lib/ccache:$PATH" + - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/tmp/icinga2 script: - - make - - sudo make install - - icinga2 --version + - make && make test && make install && /tmp/icinga2/sbin/icinga2 --version -- 2.40.0