Browse Source

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
tags/debian/1.4_rc1
Julian Andres Klode 4 years ago
parent
commit
9b7c71f145
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      .travis.yml

+ 5
- 2
.travis.yml View File

@@ -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')


Loading…
Cancel
Save