File tree 4 files changed +13
-14
lines changed
4 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ ARG_DEFS=(
10
10
" --action=(prepare|publish)"
11
11
" --next-version-type=(patch|minor|major)"
12
12
" --next-version-name=(.+)"
13
- " [--no_test= true]"
13
+ " [--no-test=( true|false) ]"
14
14
)
15
15
16
16
function init {
@@ -29,7 +29,7 @@ function prepare() {
29
29
./scripts/angular.js/finalize-version.sh
30
30
31
31
# Build
32
- if [[ $NO_TEST ]]; then
32
+ if [[ $NO_TEST == " true " ]]; then
33
33
grunt package
34
34
else
35
35
./jenkins_build.sh
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ echo "#### Update master ##############"
5
5
echo " #################################"
6
6
7
7
ARG_DEFS=(
8
- " [--no-test=true]"
8
+ " [--no-test=( true|false) ]"
9
9
)
10
10
11
11
function build {
12
12
cd ../..
13
13
14
- if [[ $NO_TEST ]]; then
14
+ if [[ $NO_TEST == " true " ]]; then
15
15
grunt package
16
16
else
17
17
./jenkins_build.sh
Original file line number Diff line number Diff line change @@ -5,16 +5,13 @@ echo "#### Cut release ################"
5
5
echo " #################################"
6
6
7
7
ARG_DEFS=(
8
- " --next_version_type =(patch|minor|major)"
8
+ " --next-version-type =(patch|minor|major)"
9
9
" --next-version-name=(.+)"
10
- " [--no-test=true]"
10
+ " [--no-test=( true|false) ]"
11
11
)
12
12
13
13
function init {
14
14
NG_ARGS=(" $@ " )
15
- if [[ $NO_TEST ]]; then
16
- NG_ARGS+=(--no_test=true)
17
- fi
18
15
}
19
16
20
17
function phase {
Original file line number Diff line number Diff line change @@ -217,8 +217,8 @@ function git_push_dryrun_proxy {
217
217
export ORIGIN_GIT = $(which git )
218
218
219
219
function git {
220
- local var
221
- ARGS = ( "$@" )
220
+ local ARGS = ( "$@" )
221
+ local RC
222
222
if [[ $1 == "push" ]]; then
223
223
ARGS += ("--dry-run" "--porcelain" )
224
224
echo "####### START GIT PUSH DRYRUN #######"
@@ -228,9 +228,11 @@ function git_push_dryrun_proxy {
228
228
echo "${ARGS[@]} "
229
229
fi
230
230
$ORIGIN_GIT "${ARGS[@]} "
231
+ RC = $?
231
232
if [[ $1 == "push" ]]; then
232
233
echo "####### END GIT PUSH DRYRUN #######"
233
234
fi
235
+ return $RC
234
236
}
235
237
236
238
export -f git
@@ -240,19 +242,19 @@ function main {
240
242
# normalize the working dir to the directory of the script
241
243
cd $(dirname $0 );SCRIPT_DIR = $(pwd )
242
244
243
- ARG_DEFS += ("[--git-push-dryrun=true]" "[--verbose=true]" )
245
+ ARG_DEFS += ("[--git-push-dryrun=( true|false) ]" "[--verbose=( true|false) ]" )
244
246
parseArgs "$@"
245
247
246
248
# --git_push_dryrun argument
247
- if [[ $GIT_PUSH_DRYRUN ]]; then
249
+ if [[ $GIT_PUSH_DRYRUN == "true" ]]; then
248
250
git_push_dryrun_proxy
249
251
fi
250
252
251
253
# stop on errors
252
254
set -e
253
255
254
256
# --verbose argument
255
- if [[ $VERBOSE ]]; then
257
+ if [[ $VERBOSE == "true" ]]; then
256
258
set -x
257
259
fi
258
260
You can’t perform that action at this time.
0 commit comments