add tests to travis
This commit is contained in:
@@ -65,7 +65,7 @@ done
|
|||||||
echo -e "${CGREEN}#############################################${CEND}"
|
echo -e "${CGREEN}#############################################${CEND}"
|
||||||
echo -e ' wo site update --php73 '
|
echo -e ' wo site update --php73 '
|
||||||
echo -e "${CGREEN}#############################################${CEND}"
|
echo -e "${CGREEN}#############################################${CEND}"
|
||||||
other_site_types='html mysql wp wpfc wpsc wpredis wpce wprocket wpsubdomain wpsubdir'
|
other_site_types='html mysql wp wpfc wpsc wpredis wpce wprocket wpsubdomain wpsubdir ngxblocker'
|
||||||
for site in $other_site_types; do
|
for site in $other_site_types; do
|
||||||
echo -ne " Updating site to $site php73 [..]\r"
|
echo -ne " Updating site to $site php73 [..]\r"
|
||||||
if {
|
if {
|
||||||
@@ -180,6 +180,46 @@ for stack in $stack_clean; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo -e "${CGREEN}#############################################${CEND}"
|
||||||
|
echo -e ' wo secure '
|
||||||
|
echo -e "${CGREEN}#############################################${CEND}"
|
||||||
|
echo -ne " wo secure --auth [..]\r"
|
||||||
|
if {
|
||||||
|
wo secure --auth wordops mypassword
|
||||||
|
} >> /var/log/wo/test.log; then
|
||||||
|
echo -ne " wo secure --auth [${CGREEN}OK${CEND}]\\r"
|
||||||
|
echo -ne '\n'
|
||||||
|
else
|
||||||
|
echo -e " wo secure --auth [${CRED}FAIL${CEND}]"
|
||||||
|
echo -ne '\n'
|
||||||
|
exit_script
|
||||||
|
|
||||||
|
fi
|
||||||
|
echo -ne " wo secure --sshport [..]\r"
|
||||||
|
if {
|
||||||
|
wo secure --sshport 2022
|
||||||
|
} >> /var/log/wo/test.log; then
|
||||||
|
echo -ne " wo secure --sshport [${CGREEN}OK${CEND}]\\r"
|
||||||
|
echo -ne '\n'
|
||||||
|
else
|
||||||
|
echo -e " wo secure --sshport [${CRED}FAIL${CEND}]"
|
||||||
|
echo -ne '\n'
|
||||||
|
exit_script
|
||||||
|
|
||||||
|
fi
|
||||||
|
echo -ne " wo secure --ssh [..]\r"
|
||||||
|
if {
|
||||||
|
wo secure --ssh --force
|
||||||
|
} >> /var/log/wo/test.log; then
|
||||||
|
echo -ne " wo secure --ssh [${CGREEN}OK${CEND}]\\r"
|
||||||
|
echo -ne '\n'
|
||||||
|
else
|
||||||
|
echo -e " wo secure --ssh [${CRED}FAIL${CEND}]"
|
||||||
|
echo -ne '\n'
|
||||||
|
exit_script
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "${CGREEN}#############################################${CEND}"
|
echo -e "${CGREEN}#############################################${CEND}"
|
||||||
echo -e ' various informations '
|
echo -e ' various informations '
|
||||||
echo -e "${CGREEN}#############################################${CEND}"
|
echo -e "${CGREEN}#############################################${CEND}"
|
||||||
|
|||||||
Reference in New Issue
Block a user