mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-03 02:59:57 +00:00
Fix .travis.yml to include new tests
This commit is contained in:
parent
7b5b90f40d
commit
9df5b71de0
1 changed files with 15 additions and 13 deletions
28
.travis.yml
28
.travis.yml
|
@ -22,28 +22,30 @@ addons:
|
|||
packages:
|
||||
- realpath
|
||||
- mailutils
|
||||
|
||||
before_install:
|
||||
- export TZ=Africa/Johannesburg
|
||||
|
||||
install:
|
||||
- sudo add-apt-repository -y ppa:nginx/stable
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y --force-yes nginx-extras
|
||||
|
||||
script:
|
||||
- travis-ci/install-nginx.sh
|
||||
- sudo nginx -t &> /dev/stdout
|
||||
- curl -vsf 'http://localhost:8080/nginx.php' &> /dev/stdout
|
||||
- curl -A "googlebot" http://localhost:8080/nginx.php &> /dev/stdout
|
||||
- curl -A "bingbot" http://localhost:8080/nginx.php &> /dev/stdout
|
||||
- curl -I http://localhost:8080/nginx.php -e http://google.com
|
||||
- STATUSCODE=$(curl -A "80legs" http://localhost:8080/nginx.php &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
|
||||
- STATUSCODE=$(curl -A "masscan" http://localhost:8080/nginx.php &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
|
||||
- STATUSCODE=$(curl -I http://localhost:8080/nginx.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:8080/nginx.php -e http://zx6.ru &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
|
||||
- cat /tmp/error.log
|
||||
- echo $TRAVIS_BUILD_DIR
|
||||
#- travisCI/do-other-stuff.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
|
||||
- travis-ci/change-file.sh
|
||||
|
||||
before_deploy:
|
||||
- travisCI/deploy.sh
|
||||
- travis-ci/deploy-package.sh
|
||||
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key:
|
||||
|
|
Loading…
Add table
Reference in a new issue