Skip to content

Commit c743428

Browse files
Fix ordering of install commands
1 parent 2790994 commit c743428

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ before_install:
3838
# Install PHP 7.0
3939
- sudo apt-get update
4040
- sudo apt-get install -y --force-yes php7.0 libapache2-mod-php7.0 php7.0-fpm
41+
# Add testing of Apache Bad Bot Blocker
42+
- sudo mkdir /etc/apache2/custom.d
43+
- cd /etc/apache2/custom.d
44+
- sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/custom.d/globalblacklist.conf
4145
# Copy our virtual host template to sites-enabled overwriting the default site conf
4246
- sudo cp travisCI/defaultsite.tpl /etc/apache2/sites-available/000-default.conf
4347
# Copy basic testing files into /var/www
@@ -52,11 +56,6 @@ before_install:
5256
- sudo service apache2 restart
5357
# Restart PHP
5458
- sudo service php7.0-fpm restart
55-
# Add testing of Apache Bad Bot Blocker
56-
- sudo mkdir /etc/apache2/custom.d
57-
- cd /etc/apache2/custom.d
58-
- sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/custom.d/globalblacklist.conf
59-
- sudo service apache2 restart
6059

6160
script:
6261
# Do a lookup on local.dev hostname set above

0 commit comments

Comments
 (0)