-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
66 lines (60 loc) · 2.49 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
language: php
env:
global:
- secure: Lx7nvCzw2iebUrMNhxXBzQoj4ni/4HulGCYLrgHexLWjImqtOnQE75IdLxAcqAzXqYkyfOE3hwFM7njT4FxcA9luqTNkEUHoKKDUPIE66XQtROVPGyYqzV455yPUsoYxGxTwnnPxhrGeiH8jkSft8JMdqeXRukPSBxK4S7JBgRiRgF0SlgmjfoU11pnYz2ip99SxMhcfJF0T8YKvhqJ0P4bO52q9OpTzI+qqcANO7HnPC+rveUlVs+TbMwiqJQsEVrQkDxEZnwyi2g7neZ0VhMkRd+b5LYd6DwqIYKV0qAKDEm/Vol7IyNFymxBVUc9r91lfGWoyzB/6f3/GuJpZXtPXl+QamI1tniNnhI38jBWegHtA8DwH0/72yn3Rb4zg4wx4SOOnQ/4b28vOm0SdwzYgaIBadxYTCbSzFf3LpuTEPt7QKRhCzP1DqUKztVfnGrNUxe4bHj5OWZ517qxb0maSwaqnN47emHl1LJGn8p6PIRypIAj2Q3dyQExiiYXOhxvZhdclqim58GF6rXIDMlxc4xo7aDbrp6jqbC2y0vzM4p+ZiJlHklv2Ro/tUcErVlfKvUHb3uHJkhyGcnEov6XvBx6jNPDt+w6+8g+wQALPUCyUQQyHzJaf6OH+RNqHlT3vX7gWsD2kRrOxzUBxN94OTvlzoTwwl1rnvVNsTa0=
- GIT_NAME: TravisCI
- GIT_EMAIL: [email protected]
- TRAVIS_REPO_SLUG: mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration
- GIT_BRANCH: master
sudo: required
dist: trusty
matrix:
include:
- php: 7.0
allow_failures:
- php: 7.0
- php: hhvm
fast_finish: true
cache:
- apt
addons:
apt:
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
- curl -vsf 'http://localhost:9000/index.php' &> /dev/stdout
- curl -A "googlebot" http://localhost:9000/index.php &> /dev/stdout
- 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:
- travis-ci/deploy-package.sh
deploy:
provider: releases
api_key:
secure: ${GH_TOKEN}
file:
- "globalblacklist.conf"
skip_cleanup: true
on:
repo: mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration
tags: false
branches:
except:
- "/^v[0-9]/"
- "/^V.*$/"
branches:
only:
- "master"
notifications:
email: false