This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 4 files changed +13
-9
lines changed
4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,12 @@ echo "#################################"
4
4
echo " #### Jenkins Build ############"
5
5
echo " #################################"
6
6
7
+
7
8
# Enable tracing and exit on first failure
8
9
set -xe
9
10
11
+ scripts/jenkins/set-node-version.sh
12
+
10
13
# This is the default set of browsers to use on the CI server unless overridden via env variable
11
14
if [[ -z " $BROWSERS " ]]
12
15
then
@@ -19,6 +22,7 @@ rm -f angular.js.size
19
22
20
23
21
24
# BUILD #
25
+ npm install -g grunt-cli
22
26
npm install --color false
23
27
grunt ci-checks package --no-color
24
28
Original file line number Diff line number Diff line change @@ -17,14 +17,7 @@ function init {
17
17
18
18
function build {
19
19
cd ../..
20
-
21
- if [[ $NO_TEST == " true" ]]; then
22
- npm install --color false
23
- grunt ci-checks package --no-color
24
- else
25
- scripts/jenkins/build.sh
26
- fi
27
-
20
+ scripts/jenkins/build.sh
28
21
cd $SCRIPT_DIR
29
22
}
30
23
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ function init {
35
35
}
36
36
37
37
function build {
38
+ ./set-node-version.sh
38
39
cd ../..
39
-
40
40
npm install --color false
41
41
grunt ci-checks package --no-color
42
42
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Install nvm for this shell
4
+ source ~ /.nvm/nvm.sh
5
+
6
+ # Use node.js at 4.2.x
7
+ nvm install 4.2
You can’t perform that action at this time.
0 commit comments