From 548ae4d0fe1484749560fcfa1f1d48bf339adb66 Mon Sep 17 00:00:00 2001 From: Eric Garver Date: Tue, 16 Apr 2019 16:43:29 -0400 Subject: [PATCH 52/73] chore: travis: split test matrix by keywords This will cause the tests to be split up and each VM will run for less time. This effectively decreases the CI time by running more in parallel. (cherry picked from commit a833a4228fd14f78bb4320427b63ac51f84760f6) (cherry picked from commit d357dd0fb904a1a4f31b329cb7dd1c4b41035661) --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d5743e5c4ef6..e3410857599b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,13 @@ python: - "2.7" - "3.4" +# Use keywords to split the tests into smaller groups and therefore decrease +# the time CI takes to run. +env: + - TESTSUITEFLAGS="-k offline -j3" + - TESTSUITEFLAGS="-k nftables -j3" + - TESTSUITEFLAGS="-k iptables -j3" + # Install necessary dependencies before_install: - sudo apt-get update -qq @@ -52,7 +59,8 @@ script: # Do a parallel build to spot potential dependency problems. # No ebtables-restore in ubuntu 14.04 - ./autogen.sh --with-ebtables-restore=/bin/false --sysconfdir=/etc && make -j32 - - sudo env PATH="$PATH" make check TESTSUITEFLAGS="-j3" || + # Note: TESTSUITEFLAGS implicit from env above + - sudo env PATH="$PATH" make check || sudo env PATH="$PATH" make check TESTSUITEFLAGS="--recheck --errexit -v -d" # uncomment to add IRC notifications -- 2.20.1