summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-09-11 13:49:23 +0200
committerJulian Andres Klode <jak@debian.org>2016-09-11 13:49:23 +0200
commite09a8a611e27e1f08dbe8415dafa4679e5ab23fc (patch)
tree48ef2bb43f0c2eddd40a767a89173c5ab3157a30 /.travis.yml
parent561a3557e7fa6c4ed693c3bb486d189a468a8080 (diff)
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
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml11
1 files changed, 6 insertions, 5 deletions
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