Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0990833

Browse files
chore(travis): install grunt-cli globally to simplify scripts
1 parent f54e924 commit 0990833

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

scripts/check-size.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
node_modules/.bin/grunt minify
3+
grunt minify
44
gzip -c < build/angular.min.js > build/angular.min.js.gzip
55
ls -l build/angular.min.*

scripts/travis/before_build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
yarn global add [email protected]
6+
57
mkdir -p $LOGS_DIR
68

79
if [ $JOB != "ci-checks" ]; then
@@ -10,7 +12,7 @@ if [ $JOB != "ci-checks" ]; then
1012
fi
1113

1214
if [ $JOB != "ci-checks" ]; then
13-
node_modules/.bin/grunt package
15+
grunt package
1416
echo "wait_for_browser_provider"
1517
./scripts/travis/wait_for_browser_provider.sh
1618
fi

scripts/travis/build.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ export BROWSER_STACK_ACCESS_KEY=`echo $BROWSER_STACK_ACCESS_KEY | rev`
66
export SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev`
77

88
if [ "$JOB" == "ci-checks" ]; then
9-
node_modules/.bin/grunt ci-checks
9+
grunt ci-checks
1010
elif [ "$JOB" == "unit" ]; then
1111
if [ "$BROWSER_PROVIDER" == "browserstack" ]; then
1212
BROWSERS="BS_Chrome,BS_Safari,BS_Firefox,BS_IE_9,BS_IE_10,BS_IE_11,BS_iOS"
1313
else
1414
BROWSERS="SL_Chrome,SL_Firefox,SL_Safari_8,SL_Safari_9,SL_IE_9,SL_IE_10,SL_IE_11,SL_iOS"
1515
fi
1616

17-
node_modules/.bin/grunt test:promises-aplus
18-
node_modules/.bin/grunt test:unit --browsers="$BROWSERS" --reporters=dots
19-
node_modules/.bin/grunt tests:docs --browsers="$BROWSERS" --reporters=dots
17+
grunt test:promises-aplus
18+
grunt test:unit --browsers="$BROWSERS" --reporters=dots
19+
grunt tests:docs --browsers="$BROWSERS" --reporters=dots
2020
elif [ "$JOB" == "docs-e2e" ]; then
21-
node_modules/.bin/grunt test:travis-protractor --specs="docs/app/e2e/**/*.scenario.js"
21+
grunt test:travis-protractor --specs="docs/app/e2e/**/*.scenario.js"
2222
elif [ "$JOB" == "e2e" ]; then
2323
if [[ $TEST_TARGET == jquery* ]]; then
2424
export USE_JQUERY=1
@@ -30,7 +30,7 @@ elif [ "$JOB" == "e2e" ]; then
3030
fi
3131

3232
export TARGET_SPECS="test/e2e/tests/**/*.js,$TARGET_SPECS"
33-
node_modules/.bin/grunt test:travis-protractor --specs="$TARGET_SPECS"
33+
grunt test:travis-protractor --specs="$TARGET_SPECS"
3434
else
3535
echo "Unknown job type. Please set JOB=ci-checks, JOB=unit or JOB=e2e-*."
3636
fi

0 commit comments

Comments
 (0)