|
Harald Hoyer |
9d5d75 |
From 9c034dc326b4acd8e66af15f76f151311a5408bb Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
9d5d75 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
9d5d75 |
Date: Thu, 16 Aug 2018 11:57:30 +0200
|
|
Harald Hoyer |
9d5d75 |
Subject: [PATCH] travis: no rpm check for all matrix tests
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
---
|
|
Harald Hoyer |
9d5d75 |
.travis.yml | 10 +++++-----
|
|
Harald Hoyer |
9d5d75 |
fedora-test.sh | 24 ++++++++++++++----------
|
|
Harald Hoyer |
9d5d75 |
2 files changed, 19 insertions(+), 15 deletions(-)
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
diff --git a/.travis.yml b/.travis.yml
|
|
Harald Hoyer |
9d5d75 |
index dfb4a616..075cbc6a 100644
|
|
Harald Hoyer |
9d5d75 |
--- a/.travis.yml
|
|
Harald Hoyer |
9d5d75 |
+++ b/.travis.yml
|
|
Harald Hoyer |
9d5d75 |
@@ -4,12 +4,12 @@ services:
|
|
Harald Hoyer |
9d5d75 |
- docker
|
|
Harald Hoyer |
9d5d75 |
env:
|
|
Harald Hoyer |
9d5d75 |
matrix:
|
|
Harald Hoyer |
9d5d75 |
- - IMAGE=latest TESTS="01 02 03 04 10 11"
|
|
Harald Hoyer |
9d5d75 |
- - IMAGE=latest TESTS="12 13 15 17 18"
|
|
Harald Hoyer |
9d5d75 |
+ - IMAGE=latest
|
|
Harald Hoyer |
9d5d75 |
+ - IMAGE=latest TESTS="01 02 03 04 10 11 12"
|
|
Harald Hoyer |
9d5d75 |
+ - IMAGE=latest TESTS="13 15 17 18"
|
|
Harald Hoyer |
9d5d75 |
- IMAGE=latest TESTS=20
|
|
Harald Hoyer |
9d5d75 |
- - IMAGE=latest TESTS="30 31"
|
|
Harald Hoyer |
9d5d75 |
- - IMAGE=latest TESTS=50
|
|
Harald Hoyer |
9d5d75 |
- - IMAGE=latest TESTS="70 99"
|
|
Harald Hoyer |
9d5d75 |
+ - IMAGE=latest TESTS="30 31 99"
|
|
Harald Hoyer |
9d5d75 |
+ - IMAGE=latest TESTS="50 70"
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
before_script:
|
|
Harald Hoyer |
9d5d75 |
- docker pull fedora:$IMAGE
|
|
Harald Hoyer |
9d5d75 |
diff --git a/fedora-test.sh b/fedora-test.sh
|
|
Harald Hoyer |
9d5d75 |
index af38bc33..87023a84 100755
|
|
Harald Hoyer |
9d5d75 |
--- a/fedora-test.sh
|
|
Harald Hoyer |
9d5d75 |
+++ b/fedora-test.sh
|
|
Harald Hoyer |
9d5d75 |
@@ -45,13 +45,17 @@ dnf -y install --best --allowerasing \
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
NCPU=$(getconf _NPROCESSORS_ONLN)
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
-make -j$NCPU all syncheck rpm logtee
|
|
Harald Hoyer |
9d5d75 |
-
|
|
Harald Hoyer |
9d5d75 |
-cd test
|
|
Harald Hoyer |
9d5d75 |
-
|
|
Harald Hoyer |
9d5d75 |
-time sudo make \
|
|
Harald Hoyer |
9d5d75 |
- KVERSION=$(rpm -qa kernel --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -rn | head -1) \
|
|
Harald Hoyer |
9d5d75 |
- TEST_RUN_ID=$RUN_ID \
|
|
Harald Hoyer |
9d5d75 |
- ${TESTS:+TESTS="$TESTS"} \
|
|
Harald Hoyer |
9d5d75 |
- -k V=2 \
|
|
Harald Hoyer |
9d5d75 |
- check
|
|
Harald Hoyer |
9d5d75 |
+if ! [[ $TESTS ]]; then
|
|
Harald Hoyer |
9d5d75 |
+ make -j$NCPU all syncheck rpm logtee
|
|
Harald Hoyer |
9d5d75 |
+else
|
|
Harald Hoyer |
9d5d75 |
+ make -j$NCPU all logtee
|
|
Harald Hoyer |
9d5d75 |
+
|
|
Harald Hoyer |
9d5d75 |
+ cd test
|
|
Harald Hoyer |
9d5d75 |
+
|
|
Harald Hoyer |
9d5d75 |
+ time sudo make \
|
|
Harald Hoyer |
9d5d75 |
+ KVERSION=$(rpm -qa kernel --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -rn | head -1) \
|
|
Harald Hoyer |
9d5d75 |
+ TEST_RUN_ID=$RUN_ID \
|
|
Harald Hoyer |
9d5d75 |
+ ${TESTS:+TESTS="$TESTS"} \
|
|
Harald Hoyer |
9d5d75 |
+ -k V=2 \
|
|
Harald Hoyer |
9d5d75 |
+ check
|
|
Harald Hoyer |
9d5d75 |
+fi
|
|
Harald Hoyer |
9d5d75 |
|