do not update package list with flag --travis
This commit is contained in:
@@ -26,7 +26,7 @@ script:
|
||||
- sudo bash -c 'echo -e "[user]\n\tname = abc\n\temail = root@localhost.com" > /home/travis/.gitconfig'
|
||||
- sudo echo "Travis Banch = $TRAVIS_BRANCH"
|
||||
- sudo apt-get install -y --force-yes git python3-setuptools python3-dev python3-apt ccze tree
|
||||
- sudo bash install -b $TRAVIS_BRANCH
|
||||
- sudo bash install -b $TRAVIS_BRANCH --travis
|
||||
- sudo wo --help && sudo wo stack install && sudo wo stack install --admin
|
||||
|
||||
- sudo wo site create html.net --html && sudo wo site create php.com --php && sudo wo site create mysql.com --mysql || sudo tail -n50 /var/log/wo/wordops.log
|
||||
|
||||
45
install
45
install
@@ -51,6 +51,31 @@ wo_lib_error() {
|
||||
exit "$2"
|
||||
}
|
||||
|
||||
###
|
||||
# 1 - script argument parsing
|
||||
###
|
||||
|
||||
while [ "$#" -gt 0 ]; do
|
||||
case "$1" in
|
||||
-b | --branch)
|
||||
wo_branch="$2"
|
||||
shift
|
||||
;;
|
||||
-p | --preserve)
|
||||
wo_preserve_config="y"
|
||||
;;
|
||||
--force)
|
||||
wo_force_install="y"
|
||||
;;
|
||||
--travis)
|
||||
wo_travis="y"
|
||||
;;
|
||||
*) # positional args
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
###
|
||||
# 1 - Check whether the installation is called with elevated rights
|
||||
###
|
||||
@@ -67,8 +92,10 @@ echo ""
|
||||
###
|
||||
# 1- Update the apt sewers with fresh info
|
||||
###
|
||||
[ -z "$wo_travis" ] && {
|
||||
wo_lib_echo "Updating apt-get repository info"
|
||||
apt-get update -qq
|
||||
}
|
||||
|
||||
###
|
||||
# 1- Check whether lsb_release is installed, and if not, install it
|
||||
@@ -78,24 +105,6 @@ if [ -z "$(command -v lsb_release)" ]; then
|
||||
apt-get -y install lsb-release -qq
|
||||
fi
|
||||
|
||||
while [ "$#" -gt 0 ]; do
|
||||
case "$1" in
|
||||
-b | --branch)
|
||||
wo_branch="$2"
|
||||
shift
|
||||
;;
|
||||
-p | --preserve)
|
||||
wo_preserve_config="y"
|
||||
;;
|
||||
--force)
|
||||
wo_force_install="y"
|
||||
;;
|
||||
*) # positional args
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
###
|
||||
# 1 - Define variables for later use
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user