forked from mitchellkrogza/nginx-ultimate-bad-bot-blocker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
97 lines (89 loc) · 3.31 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
addons:
apt:
packages:
- realpath
- mailutils
cache:
- apt
dist: xenial
env:
global:
- secure: unp8irwVXz37jxOFbuM4NciRaq326XktPJP0UuL5m1qdrGiLQVq18cIuXClkxbnCoXzpkL0gG1XdjaD0bRKWAnwRRZBEKDRBYXyF+IcGCfG1k8HUbZoV1OTP21qUXot70YrTiZJ3NkuS32RJdFV9qRAkaM1Srf+ZRHcsZSdXaSJTooMsDLtqk9Bjh9aHEltRCDS0AT2YPANZLW4Yn2QcwBmPhv+3xNxRt2etbl1EYvjYGbKw31JJnMHvS15DJEY52coJ+n4Yw/EI9My4O9TshrAEHeWwXT+dGACdNTD9lXkohuEyc10bgWTGeD5jytm5mbVbzlML3iro0sq6gNWr1iBzGL+FkWSR0ezkbADcnxoUwZa7OHwOPcrzmgkNp6jouGk6Xhl7NQgfwJJtQYPWfOuXIVNUk1Z2Ein/lw2WMzGmEHrqs1x2gIrD83sKqULT3kZBWr4RfhUPjol+V0MZJ+KCW2yo+2C8lZDQ5LWxftoqnG/ia70nFemWsyHSqe2OvN4WfwW9zdS0kRqMZVq/r3R+y0idacFkvO5yXk7cS45tAawIUK5Ipc3fib/ERv8zoDjcIt136hXhlYo44vPr2oprDnyvLcCbdG0A4uCnPpp3Bdbcn2NqIlsXhzBV+YJokaTv5zfWSH2YX6+wdv0C3+dkFjpZaASVg/R7oxg/oXY=
- GIT_NAME: Travis CI
- GIT_EMAIL: [email protected]
- TRAVIS_REPO_SLUG: mitchellkrogza/nginx-ultimate-bad-bot-blocker
- GIT_BRANCH: master
sudo: required
language: php
matrix:
include:
- php: 7.0
allow_failures:
- php: 7.0
- php: hhvm
fast_finish: true
before_install:
- export TZ=Africa/Johannesburg
install:
- sudo add-apt-repository -y ppa:nginx/stable
- sudo apt-get update
- sudo apt-get install -y --assume-yes nginx-extras
- sudo apt-get -y install dos2unix
script:
# GENERATE BLOCKER FILES
- bash .dev-tools/generate-files.sh
# THE NEWLY GENERATED BLOCKER FILES
- bash .dev-tools/install-nginx-1.sh
- bash .dev-tools/test-blocker-false-positives.sh
- bash .dev-tools/test-blocker-quick.sh
- bash .dev-tools/test-blocker-badwords.sh
- bash .dev-tools/test-blocker-whitelist-domains.sh
- bash .dev-tools/test-blocker-whitelist-ips.sh
- bash .dev-tools/test-blocker-rate-limiting.sh
- bash .dev-tools/test-blocker-whitelist.sh
# TEST install-ngxblocker update-ngxblocker and setup-ngxblocker
- bash .dev-tools/install-nginx-2.sh
- bash .dev-tools/test-nginx-2.sh
- bash .dev-tools/install-nginx-3.sh
- bash .dev-tools/test-nginx-3.sh
- bash .dev-tools/test-setupngxblocker.sh
# TEST ANY NEW CHANGES TO THE BLOCKER
- bash .dev-tools/install-nginx-1.sh
- bash .dev-tools/beta-install-nginx-testing-of-changes.sh
- bash .dev-tools/beta-test-blocker-false-positives.sh
- bash .dev-tools/beta-test-blocker.sh
- bash .dev-tools/beta-test-blocker-badwords.sh
- bash .dev-tools/beta-test-blocker-whitelist-domains.sh
- bash .dev-tools/beta-test-blocker-whitelist-ips.sh
- bash .dev-tools/beta-test-blocker-rate-limiting.sh
- bash .dev-tools/beta-test-blocker-whitelist.sh
# TEST NGINX MAINLINE
- bash .dev-tools/install-nginx-mainline-ppa.sh
- bash .dev-tools/test-nginx-mainline-ppa.sh
- bash .dev-tools/install-nginx-mainline-nginx.sh
- bash .dev-tools/test-nginx-mainline-nginx.sh
# IF ALL TESTS PASSED - COMMIT AND DEPLOY BUILD
- bash .dev-tools/modify-files-and-commit.sh
before_deploy:
- bash .dev-tools/deploy-package.sh
deploy:
provider: releases
api_key:
secure: ${GH_TOKEN}
file:
- .latest_release/conf.d.tar.gz
- .latest_release/bots.d.tar.gz
skip_cleanup: true
on:
repo: mitchellkrogza/nginx-ultimate-bad-bot-blocker
tags: false
branches:
except:
- "/^v[0-9]/"
- "/^V.*$/"
branches:
only:
- "master"
notifications:
on_success: change
on_failure: always