From 7cfe0e799a1aad68611c21aef6a40a5d330224fe 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 (cherry picked from commit 9b7c71f145e51c2d655ef09fca434d02db08331d) (cherry picked from commit e12dbcbaf486d176762d82f75307b9f5dfa66752) --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 778368cc1..f5c302c91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ language: cpp 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 - | @@ -13,6 +16,6 @@ install: - make script: - make test - - ./test/integration/run-tests -q + - test "$TEST_SUITE" != "user" || ./test/integration/run-tests -q - sudo adduser --force-badname --system --home /nonexistent --no-create-home --quiet _apt || true - - sudo ./test/integration/run-tests -q + - test "$TEST_SUITE" != "root" || sudo ./test/integration/run-tests -q -- cgit v1.2.3