mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-10 07:44:43 +00:00
chore(build): bugfixes to build scripts on Jenkins
This commit is contained in:
parent
d4d58f287f
commit
efbc242875
2 changed files with 4 additions and 10 deletions
|
|
@ -18,19 +18,12 @@ function init {
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepare() {
|
function prepare() {
|
||||||
|
|
||||||
if ! git symbolic-ref --short HEAD; then
|
|
||||||
# We are on a detached branch, e.g. jenkins checks out shas instead of branches
|
|
||||||
# Jump onto the master branch and make sure we are using the latest
|
|
||||||
git checkout -f master
|
|
||||||
git merge --ff-only origin/master
|
|
||||||
fi
|
|
||||||
|
|
||||||
./scripts/angular.js/finalize-version.sh
|
./scripts/angular.js/finalize-version.sh
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
if [[ $NO_TEST == "true" ]]; then
|
if [[ $NO_TEST == "true" ]]; then
|
||||||
grunt package
|
npm install --color false
|
||||||
|
grunt ci-checks package --no-color
|
||||||
else
|
else
|
||||||
./jenkins_build.sh
|
./jenkins_build.sh
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,8 @@ function build {
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
if [[ $NO_TEST == "true" ]]; then
|
if [[ $NO_TEST == "true" ]]; then
|
||||||
grunt package
|
npm install --color false
|
||||||
|
grunt ci-checks package --no-color
|
||||||
else
|
else
|
||||||
./jenkins_build.sh
|
./jenkins_build.sh
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue