This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-14
lines changed
Expand file tree Collapse file tree 4 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ ARG_DEFS=(
1010 " --action=(prepare|publish)"
1111 " --next-version-type=(patch|minor|major)"
1212 " --next-version-name=(.+)"
13- " [--no_test= true]"
13+ " [--no-test=( true|false) ]"
1414)
1515
1616function init {
@@ -29,7 +29,7 @@ function prepare() {
2929 ./scripts/angular.js/finalize-version.sh
3030
3131 # Build
32- if [[ $NO_TEST ]]; then
32+ if [[ $NO_TEST == " true " ]]; then
3333 grunt package
3434 else
3535 ./jenkins_build.sh
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ echo "#### Update master ##############"
55echo " #################################"
66
77ARG_DEFS=(
8- " [--no-test=true]"
8+ " [--no-test=( true|false) ]"
99)
1010
1111function build {
1212 cd ../..
1313
14- if [[ $NO_TEST ]]; then
14+ if [[ $NO_TEST == " true " ]]; then
1515 grunt package
1616 else
1717 ./jenkins_build.sh
Original file line number Diff line number Diff line change @@ -5,16 +5,13 @@ echo "#### Cut release ################"
55echo " #################################"
66
77ARG_DEFS=(
8- " --next_version_type =(patch|minor|major)"
8+ " --next-version-type =(patch|minor|major)"
99 " --next-version-name=(.+)"
10- " [--no-test=true]"
10+ " [--no-test=( true|false) ]"
1111)
1212
1313function init {
1414 NG_ARGS=(" $@ " )
15- if [[ $NO_TEST ]]; then
16- NG_ARGS+=(--no_test=true)
17- fi
1815}
1916
2017function phase {
Original file line number Diff line number Diff line change @@ -217,8 +217,8 @@ function git_push_dryrun_proxy {
217217 export ORIGIN_GIT = $(which git )
218218
219219 function git {
220- local var
221- ARGS = ( "$@" )
220+ local ARGS = ( "$@" )
221+ local RC
222222 if [[ $1 == "push" ]]; then
223223 ARGS += ("--dry-run" "--porcelain" )
224224 echo "####### START GIT PUSH DRYRUN #######"
@@ -228,9 +228,11 @@ function git_push_dryrun_proxy {
228228 echo "${ARGS[@]} "
229229 fi
230230 $ORIGIN_GIT "${ARGS[@]} "
231+ RC = $?
231232 if [[ $1 == "push" ]]; then
232233 echo "####### END GIT PUSH DRYRUN #######"
233234 fi
235+ return $RC
234236 }
235237
236238 export -f git
@@ -240,19 +242,19 @@ function main {
240242 # normalize the working dir to the directory of the script
241243 cd $(dirname $0 );SCRIPT_DIR = $(pwd )
242244
243- ARG_DEFS += ("[--git-push-dryrun=true]" "[--verbose=true]" )
245+ ARG_DEFS += ("[--git-push-dryrun=( true|false) ]" "[--verbose=( true|false) ]" )
244246 parseArgs "$@"
245247
246248 # --git_push_dryrun argument
247- if [[ $GIT_PUSH_DRYRUN ]]; then
249+ if [[ $GIT_PUSH_DRYRUN == "true" ]]; then
248250 git_push_dryrun_proxy
249251 fi
250252
251253 # stop on errors
252254 set -e
253255
254256 # --verbose argument
255- if [[ $VERBOSE ]]; then
257+ if [[ $VERBOSE == "true" ]]; then
256258 set -x
257259 fi
258260
You can’t perform that action at this time.
0 commit comments