net/net.sh: Add flag to skip build (#5853)

automerge
This commit is contained in:
Trent Nelson 2019-09-09 16:40:12 -06:00 committed by Grimes
parent a18cd29411
commit 9dc5da7dbd
1 changed files with 12 additions and 1 deletions

View File

@ -76,6 +76,9 @@ Operate a configured testnet
--no-deploy --no-deploy
- Don't deploy new software, use the - Don't deploy new software, use the
existing deployment existing deployment
--no-build
- Don't build new software, deploy the
existing binaries
sanity/start/update-specific options: sanity/start/update-specific options:
@ -125,6 +128,7 @@ maybeSkipLedgerVerify=""
maybeDisableAirdrops="" maybeDisableAirdrops=""
buildProfile="--release" buildProfile="--release"
debugBuild=false debugBuild=false
doBuild=true
command=$1 command=$1
[[ -n $command ]] || usage [[ -n $command ]] || usage
@ -148,6 +152,9 @@ while [[ -n $1 ]]; do
elif [[ $1 = --no-deploy ]]; then elif [[ $1 = --no-deploy ]]; then
deployMethod=skip deployMethod=skip
shift 1 shift 1
elif [[ $1 = --no-build ]]; then
doBuild=false
shift 1
elif [[ $1 = --skip-ledger-verify ]]; then elif [[ $1 = --skip-ledger-verify ]]; then
maybeSkipLedgerVerify="$1" maybeSkipLedgerVerify="$1"
shift 1 shift 1
@ -618,7 +625,11 @@ prepare_deploy() {
) )
;; ;;
local) local)
build if $doBuild; then
build
else
echo "Build skipped due to --no-build"
fi
;; ;;
skip) skip)
;; ;;