From 9b7c71f145e51c2d655ef09fca434d02db08331d Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 17 Jan 2017 21:35:33 +0100 Subject: 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 --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.travis.yml') 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') -- cgit v1.2.3-18-g5258