Update install script to speed up travis

* do not clone again the repository anymore
* do not require to choose the git branch
* should work properly with pull requests
This commit is contained in:
VirtuBox
2019-07-31 13:08:01 +02:00
parent 3ee46e306f
commit 1efea52369
2 changed files with 16 additions and 2 deletions

16
install
View File

@@ -429,6 +429,16 @@ wo_install() {
}
# Clone Github repository if it doesn't exist
wo_install_travis() {
if [ -f "$HOME/.gitconfig" ]; then
# install and redirect log to not print python package install
python3 setup.py install >> $wo_install_log 2>&1
fi
}
wo_upgrade_nginx() {
{
@@ -780,7 +790,11 @@ else
wo_lib_echo "Installing wo dependencies " | tee -ai $wo_install_log
wo_install_dep | tee -ai $wo_install_log
wo_lib_echo "Installing WordOps " | tee -ai $wo_install_log
wo_install | tee -ai $wo_install_log
if [ "$wo_travis" = "y" ]; then
wo_install_travis | tee -ai $wo_install_log
else
wo_install | tee -ai $wo_install_log
fi
wo_lib_echo "Applying Kernel tweaks" | tee -ai $wo_install_log
wo_tweak_kernel | tee -ai $wo_install_log
wo_lib_echo "Installing acme.sh" | tee -ai $wo_install_log