summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rwxr-xr-xtests/travis.sh5
2 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 51c3134f..26585514 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -42,7 +42,7 @@ script:
- echo -e "\n\n>>> Building dummy plugin"
- /usr/bin/python uwsgiconfig.py --plugin plugins/dummy base
- echo -e "\n\n>>> Building done, starting tests"
- - ./tests/travis.sh
+ - ./tests/travis.sh .travis.yml
before_install:
- sudo apt-get update -qq
diff --git a/tests/travis.sh b/tests/travis.sh
index 3c61e206..3ec948c2 100755
--- a/tests/travis.sh
+++ b/tests/travis.sh
@@ -2,6 +2,7 @@
set -u
+CI_CONFIG="$1"
txtund=$(tput sgr 0 1) # underline
txtbld=$(tput bold) # bold
bldred=${txtbld}$(tput setaf 1) # red
@@ -88,14 +89,14 @@ while read PV ; do
for WSGI_FILE in tests/staticfile.py tests/testworkers.py tests/testrpc.py ; do
test_python $PV $WSGI_FILE
done
-done < <(cat .travis.yml | grep "plugins/python base" | sed s_".*plugins/python base "_""_g)
+done < <(cat "$CI_CONFIG" | grep "plugins/python base" | sed s_".*plugins/python base "_""_g)
while read RV ; do
for RACK in examples/config2.ru ; do
test_rack $RV $RACK
done
-done < <(cat .travis.yml | grep "plugins/rack base" | sed s_".*plugins/rack base "_""_g)
+done < <(cat "$CI_CONFIG" | grep "plugins/rack base" | sed s_".*plugins/rack base "_""_g)
echo "${bldgre}>>> $SUCCESS SUCCESSFUL TEST(S)${txtrst}"