]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Move before/run scripts out of .travis.yml.
authorJoe Orton <jorton@apache.org>
Wed, 6 Nov 2019 11:45:21 +0000 (11:45 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 6 Nov 2019 11:45:21 +0000 (11:45 +0000)
Reviewed by: elukey

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869459 13f79535-47bb-0310-9956-ffa450edef68

.travis.yml
test/travis_before_linux.sh [new file with mode: 0755]
test/travis_run_linux.sh [new file with mode: 0755]

index 63302ca3c43595b95d5757a018f5da4acec49613..9604140a1c5614e07101a82bb50886cd775353b5 100644 (file)
@@ -70,16 +70,7 @@ before_install:
     fi
 
 before_script:
-  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then
-        svn export -q https://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr;
-        test -v SKIP_TESTING || svn export -q https://svn.apache.org/repos/asf/httpd/test/framework/trunk test/perl-framework;
-    fi
+  - ./test/travis_before_${TRAVIS_OS_NAME}.sh
 
 script:
-  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then
-        ./buildconf;
-        test -v SKIP_TESTING || CONFIG="--with-test-suite=test/perl-framework $CONFIG";
-        ./configure $CONFIG --with-apr=/usr --with-apr-util=/usr;
-        make $MAKEFLAGS -j2;
-        test -v SKIP_TESTING || make check;
-    fi
+  - ./test/travis_run_${TRAVIS_OS_NAME}.sh
diff --git a/test/travis_before_linux.sh b/test/travis_before_linux.sh
new file mode 100755 (executable)
index 0000000..898af22
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash -ex
+svn export -q https://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr
+if ! test -v SKIP_TESTING; then
+   svn export -q https://svn.apache.org/repos/asf/httpd/test/framework/trunk test/perl-framework
+fi
diff --git a/test/travis_run_linux.sh b/test/travis_run_linux.sh
new file mode 100755 (executable)
index 0000000..5508740
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash -ex
+./buildconf
+test -v SKIP_TESTING || CONFIG="--with-test-suite=test/perl-framework $CONFIG"
+./configure $CONFIG --with-apr=/usr --with-apr-util=/usr
+make $MAKEFLAGS -j2
+test -v SKIP_TESTING || make check