From e09a8a611e27e1f08dbe8415dafa4679e5ab23fc Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 11 Sep 2016 13:49:23 +0200 Subject: travis: use ninja and ccache for building This cleans up the output a bit, it should also improve performance, but unfortunately, this does not really seem to be the case. Gbp-Dch: ignore --- .travis.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 131bf4abd..a3d9d81e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: cpp +cache: ccache sudo: required dist: trusty before_install: @@ -10,14 +11,14 @@ before_install: - sudo apt-get update -qq install: - sudo apt-get -qq -y -t wily install gettext liblz4-dev python3-apt - - sudo apt-get -qq -y -t xenial install cmake + - sudo apt-get -qq -y -t xenial install cmake ninja-build - sudo ./prepare-release travis-ci before_script: - - ( mkdir build && cd build && cmake .. ) - - make -C build -j4 + - ( mkdir build && cd build && cmake -G Ninja .. ) + - ninja -C build script: - - CTEST_OUTPUT_ON_FAILURE=1 make -C build test - - chronic make -C build install DESTDIR=$PWD/rootdir + - CTEST_OUTPUT_ON_FAILURE=1 ninja -C build test + - DESTDIR=$PWD/rootdir chronic ninja -C build install - ./test/integration/run-tests -qq - sudo adduser --force-badname --system --home /nonexistent --no-create-home --quiet _apt || true - sudo ./test/integration/run-tests -qq -- cgit v1.2.3