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 18:11:44 +0100
commit7cfe0e799a1aad68611c21aef6a40a5d330224fe (patch)
treef350369a393c5ec4411d1d03e1f4aaa438b6490a /.travis.yml
parentf4b28747dced428a2282ad69026b5b54712d616c (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) (cherry picked from commit e12dbcbaf486d176762d82f75307b9f5dfa66752)
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 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