mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 10:40:36 +00:00
Fix testing of test list Ref: #264
This commit is contained in:
parent
f91628262d
commit
bcbeba83b5
3 changed files with 8 additions and 13 deletions
|
@ -41,9 +41,9 @@
|
|||
|
||||
# Run testing of test version
|
||||
|
||||
# *******************************************************
|
||||
# Make sure we test latest generated globalblacklist.conf
|
||||
# *******************************************************
|
||||
# ***********************************************************************
|
||||
# Make sure we test latest generated globalblacklist-testing-version.conf
|
||||
# ***********************************************************************
|
||||
|
||||
printf '\n%s\n%s\n%s\n\n' "##############################################################################" "Copy latest generated globalblacklist.conf file to test for any compile errors" "##############################################################################"
|
||||
sudo cp ${TRAVIS_BUILD_DIR}/conf.d/globalblacklist-testing-version.conf /etc/nginx/conf.d/globalblacklist.conf
|
||||
|
@ -55,13 +55,6 @@ sudo cp ${TRAVIS_BUILD_DIR}/conf.d/globalblacklist-testing-version.conf /etc/ngi
|
|||
printf '\n%s\n%s\n%s\n\n' "########################" "Force Reloading of Nginx" "########################"
|
||||
sudo service nginx reload
|
||||
|
||||
sudo cp ${TRAVIS_BUILD_DIR}/.dev-tools/default13.vhost /etc/nginx/sites-available/default.vhost
|
||||
sudo service nginx reload
|
||||
|
||||
sudo systemctl enable nginx
|
||||
sudo systemctl start nginx
|
||||
sudo systemctl reload nginx
|
||||
|
||||
# **********************
|
||||
# Now Run our Curl Tests
|
||||
# **********************
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
# Set Location of our Curl Test Results Files
|
||||
# *******************************************
|
||||
|
||||
echo "Tests Starting"
|
||||
|
||||
_curltest1=${TRAVIS_BUILD_DIR}/.dev-tools/_curl_tests_changetesting/curltest1.txt
|
||||
_curltest2=${TRAVIS_BUILD_DIR}/.dev-tools/_curl_tests_changetesting/curltest2.txt
|
||||
_curltest3=${TRAVIS_BUILD_DIR}/.dev-tools/_curl_tests_changetesting/curltest3.txt
|
||||
|
@ -187,7 +189,7 @@ fi
|
|||
}
|
||||
|
||||
# **************************************************
|
||||
# Function Curl Test 9 - Check for Bad Bot "Nutch"
|
||||
# Function Curl Test 10 - Check for Bad Bot "Nutch"
|
||||
# **************************************************
|
||||
|
||||
run_curltest10 () {
|
||||
|
|
|
@ -40,14 +40,14 @@ script:
|
|||
- bash .dev-tools/generate-files.sh
|
||||
- bash .dev-tools/install-nginx-1.sh
|
||||
- bash .dev-tools/run-curl-tests-1.sh
|
||||
- bash .dev-tools/install-nginx-testing-of-changes.sh
|
||||
- bash .dev-tools/run-curl-tests-testing-of-changes.sh
|
||||
- bash .dev-tools/install-nginx-2.sh
|
||||
- bash .dev-tools/run-curl-tests-2.sh
|
||||
- bash .dev-tools/install-nginx-3.sh
|
||||
- bash .dev-tools/run-curl-tests-3.sh
|
||||
- bash .dev-tools/install-nginx-4.sh
|
||||
- bash .dev-tools/run-curl-tests-4.sh
|
||||
- bash .dev-tools/install-nginx-testing-of-changes.sh
|
||||
- bash .dev-tools/run-curl-tests-testing-of-changes.sh
|
||||
- bash .dev-tools/modify-files-and-commit.sh
|
||||
|
||||
before_deploy:
|
||||
|
|
Loading…
Add table
Reference in a new issue