Skip to content

Commit 0aa02f6

Browse files
get some more directory listings
1 parent 9ae3750 commit 0aa02f6

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
# Template for Travis CI Testing of Nginx Configuration Files
33
## Written by Mitchell Krog - https://github.com/mitchellkrogza
44

5-
This is a basic template for getting Travis CI's container based infrastructure to install a stable version of Nginx including Nginx-Extras and to test any scenario of Nginx.conf files and customization scripts you have written.
5+
This is a basic template for getting Travis CI's container based infrastructure to install a stable version of Nginx including Nginx-Extras and to test any scenario of Nginx.conf files and customization scripts you have written.
6+
7+
I actually use this a test playground for my Nginx Bad Bot Blocker - https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker so it's always changing but it will give you the basics of how to properly install Nginx on Travis.
8+
9+
My previous commits to this repository used incorrect (but working) methods of installing nginx you will see now that the .travis.yml has a simple command to install nginx-full this is is the correct way to properly have Travis CI install nginx not by adding repo's and manually installing it anymore as it was before.
610

711
## The purpose of this repository?
812

travis-ci/install-nginx2.sh

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,9 @@ set -x
6060
# Start nginx.
6161
#nginx -c "$DIR/nginx/nginx.conf"
6262
echo $TRAVIS_BUILD_DIR
63-
#ls -la /etc/nginx
64-
#cd /home/travis/build/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration
65-
#ls -la
66-
#sudo mkdir /etc/nginx/bots.d 2>&1
67-
#sudo mkdir /etc/nginx/bots.d 2>&1
6863
sudo chmod +x $TRAVIS_BUILD_DIR/install-ngxblocker
69-
sudo $TRAVIS_BUILD_DIR/install-ngxblocker
70-
sudo $TRAVIS_BUILD_DIR/install-ngxblocker -x 2>&1
71-
ls -la $TRAVIS_BUILD_DIR
72-
ls -la /etc/nginx
64+
sudo $TRAVIS_BUILD_DIR/install-ngxblocker -x
7365
ls -la /etc/nginx/conf.d
74-
cd /
75-
ls -la
76-
find . -name nginx\*
66+
ls -la /etc/nginx/bots.d
67+
ls -la /etc/nginx/sites-available
68+
#sudo cp $TRAVIS_BUILD_DIR/travis-ci/defaultsite.tpl /etc/nginx/site-available/

0 commit comments

Comments
 (0)