TravisCI Build Only to Include globalblacklist.conf in Releases

- This is due to updates only requiring the globalblacklist.conf file to be updated by users due to the new whitelist includes method introduced in Build 2.2017.04
This commit is contained in:
Mitchell Krog 2017-02-19 13:31:19 +02:00
parent 729e3e43f4
commit 4bc7cb7c7b
2 changed files with 0 additions and 38 deletions

View file

@ -44,8 +44,6 @@ deploy:
secure: ${GH_TOKEN}
file:
- "conf.d/globalblacklist.conf"
- "bots.d/ddos.conf"
- "bots.d/blockbots.conf"
skip_cleanup: true
on:
repo: mitchellkrogza/nginx-ultimate-bad-bot-blocker

View file

@ -1,36 +0,0 @@
language: php
env:
- WEB_PORT_80_TCP_ADDR=localhost
sudo: required
dist: trusty
php:
- 5.4
- 5.5
- 5.6
- 7.0
matrix:
fast_finish: true
allow_failures:
- php: hhvm
cache:
- apt
addons:
apt:
packages:
- realpath
install:
- sudo add-apt-repository -y ppa:nginx/stable
- sudo apt-get update
- sudo apt-get install -y --force-yes nginx-extras
- travis/install-nginx.sh
script:
- 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://zyzzcentral.ru &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
- cat /tmp/error.log