summaryrefslogtreecommitdiff
path: root/.gitlab-ci/run-test.sh
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci/run-test.sh')
-rwxr-xr-x.gitlab-ci/run-test.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci/run-test.sh b/.gitlab-ci/run-test.sh
index c8c26f0815..be725133f6 100755
--- a/.gitlab-ci/run-test.sh
+++ b/.gitlab-ci/run-test.sh
@@ -11,6 +11,13 @@ grep -q '^NAME=.*\(CentOS\)' /etc/os-release && IS_CENTOS=1
grep -q '^NAME=.*\(Fedora\)' /etc/os-release && IS_FEDORA=1
grep -q '^NAME=.*\(Alpine\)' /etc/os-release && IS_ALPINE=1
+IS_CENTOS_7=0
+if [ $IS_CENTOS = 1 ]; then
+ if grep -q '^VERSION_ID=.*\<7\>' /etc/os-release ; then
+ IS_CENTOS_7=1
+ fi
+fi
+
do_clean() {
git clean -fdx
}
@@ -36,6 +43,8 @@ do_clean; BUILD_TYPE=meson CC=gcc WITH_DOCS=1 WITH_VALGRIND=1 contrib/scri
do_clean; BUILD_TYPE=autotools CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh
do_clean; BUILD_TYPE=meson CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh
+do_clean; test $IS_CENTOS_7 = 1 && PYTHON=python2 BUILD_TYPE=autotools CC=gcc WITH_DOCS=1 contrib/scripts/nm-ci-run.sh
+
do_clean; test $IS_FEDORA = 1 -o $IS_CENTOS = 1 && ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test -W meson
do_clean; test $IS_FEDORA = 1 && ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test -w meson