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