summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-01-17 21:35:33 +0100
committerJulian Andres Klode <jak@debian.org>2017-01-24 19:12:48 +0100
commit9b7c71f145e51c2d655ef09fca434d02db08331d (patch)
tree3ae39c6b0af41444d2048444efc9b9a7eb52153b /.travis.yml
parent4759a702081297bde66982efed8b2b7fd39ca27c (diff)
travis: Run test suites for root and user in separate build jobs
This hopefully cuts down on the test time. Optimally, we'd just have one build job and parallize, but that requires a tty or something, probably due to GNU parallel? Gbp-Dch: ignore
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 192573e7d..29c608f3c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,9 @@ language: cpp
cache: ccache
sudo: required
dist: trusty
+env:
+ - TEST_SUITE=user
+ - TEST_SUITE=root
before_install:
- sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu/ wily main universe' -y
- sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu/ xenial main' -y
@@ -19,11 +22,11 @@ before_script:
script:
- CTEST_OUTPUT_ON_FAILURE=1 ninja -C build test
- DESTDIR=$PWD/rootdir chronic ninja -C build install
- - ./test/integration/run-tests -qq
+ - test "$TEST_SUITE" != "user" || ./test/integration/run-tests -qq
- sudo adduser --force-badname --system --home /nonexistent --no-create-home --quiet _apt || true
- sudo chmod go+x /home/travis
- sudo chmod -R go+rwX /home/travis/build
- - sudo ./test/integration/run-tests -qq
+ - test "$TEST_SUITE" != "root" || sudo ./test/integration/run-tests -qq
after_script:
- cd build
- gcov -r $(find -name '*.gcno')