mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
47 lines
860 B
Bash
Executable file
47 lines
860 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "#################################"
|
|
echo "#### Update master ##############"
|
|
echo "#################################"
|
|
|
|
ARG_DEFS=(
|
|
"[--no-test=(true|false)]"
|
|
)
|
|
|
|
function init {
|
|
if [[ ! $VERBOSE ]]; then
|
|
VERBOSE=false
|
|
fi
|
|
VERBOSE_ARG="--verbose=$VERBOSE"
|
|
}
|
|
|
|
function build {
|
|
cd ../..
|
|
|
|
if [[ $NO_TEST == "true" ]]; then
|
|
npm install --color false
|
|
grunt ci-checks package --no-color
|
|
else
|
|
./jenkins_build.sh
|
|
fi
|
|
|
|
cd $SCRIPT_DIR
|
|
}
|
|
|
|
function phase {
|
|
ACTION_ARG="--action=$1"
|
|
../code.angularjs.org/publish.sh $ACTION_ARG $VERBOSE_ARG
|
|
../bower/publish.sh $ACTION_ARG $VERBOSE_ARG
|
|
}
|
|
|
|
function run {
|
|
build
|
|
|
|
# First prepare all scripts (build, test, commit, tag, ...),
|
|
# so we are sure everything is all right
|
|
phase prepare
|
|
# only then publish to github
|
|
phase publish
|
|
}
|
|
|
|
source $(dirname $0)/../utils.inc
|