update travis

This commit is contained in:
Cold-Egg
2020-01-28 15:19:16 -05:00
parent 0b2c39a7d4
commit 2e1405e1dd
4 changed files with 62 additions and 4 deletions
Regular → Executable
View File
+59
View File
@@ -0,0 +1,59 @@
#!/bin/bash
set -o errexit
install_demo(){
./bin/demosite.sh
}
verify_lsws(){
curl -sIk http://localhost:7080/ | grep -i LiteSpeed
if [ ${?} = 0 ]; then
echo '[O] https://localhost:7080/'
else
echo '[X] https://localhost:7080/'
exit 1
fi
}
verify_page(){
curl -sIk http://localhost:80/ | grep -i WordPress
if [ ${?} = 0 ]; then
echo '[O] http://localhost:80/'
else
echo '[X] http://localhost:80/'
exit 1
fi
curl -sIk https://localhost:443/ | grep -i WordPress
if [ ${?} = 0 ]; then
echo '[O] https://localhost:443/'
else
echo '[X] https://localhost:443/'
exit 1
fi
}
verify_phpadmin(){
curl -sIk http://localhost:8080/ | grep -i phpMyAdmin
if [ ${?} = 0 ]; then
echo '[O] http://localhost:8080/'
else
echo '[X] http://localhost:8080/'
exit 1
fi
curl -sIk https://localhost:8443/ | grep -i phpMyAdmin
if [ ${?} = 0 ]; then
echo '[O] http://localhost:8443/'
else
echo '[X] http://localhost:8443/'
exit 1
fi
}
main(){
verify_lsws
verify_phpadmin
install_demo
verify_page
}
main