Removed curl tests from travis.yml and run them using new curl test bash script.

This commit is contained in:
Mitchell Krog 2017-06-28 15:08:07 +02:00
parent 19b95deecf
commit 5d234541a2

View file

@ -33,14 +33,6 @@ install:
script:
- travisCI/install-nginx.sh
- curl -vsf 'http://localhost:9000/index.php' &> /dev/stdout
- curl -A "googlebot" http://localhost:9000/index.php &> /dev/stdout
- curl -A "bingbot" http://localhost:9000/index.php &> /dev/stdout
- curl -I http://localhost:9000/index.php -e http://google.com
- STATUSCODE=$(curl -A "80legs" http://localhost:9000/index.php &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
- STATUSCODE=$(curl -A "masscan" http://localhost:9000/index.php &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
- STATUSCODE=$(curl -I http://localhost:9000/index.php -e http://100dollars-seo.com &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
- STATUSCODE=$(curl -I http://localhost:9000/index.php -e http://zx6.ru &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
- travisCI/run-curl-tests.sh
- travisCI/modify-files-and-commit.sh