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-02-22 16:53:46 +0100
commite12dbcbaf486d176762d82f75307b9f5dfa66752 (patch)
treecfa5f311159eab72d9a47ccdb0f2196946721f94 /.travis.yml
parentb5d0e1be09fd07e693bae8046848059f578d029f (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 (cherry picked from commit 9b7c71f145e51c2d655ef09fca434d02db08331d)
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')