Use local `grunt` executable on Travis
Builds have been flaky lately. Maybe this will help?
Ben Alpert committed
Apr 22, 2015 at 13:00 UTC
e534e0730e4eaf5fea577e0ecfab2b2b375a3370
2 files changed
+4
-3
.travis.yml
+3
-2
@@ -15,6 +15,7 @@ before_install:
15
echo "Only docs were updated, stopping build process."
16
exit
17
fi
18
+ npm install -g npm
19
script:
20
- |
21
if [ "$TEST_TYPE" = build_website ]; then
@@ -42,12 +43,12 @@ script:
43
popd
44
fi
45
else
45
- grunt $TEST_TYPE
46
+ ./node_modules/.bin/grunt $TEST_TYPE
47
fi
48
after_script:
49
- |
50
if [ "$TEST_TYPE" = test ] && [ "$SERVER" ]; then
50
- grunt build
51
+ ./node_modules/.bin/grunt build
52
curl \
53
-F "react=@build/react.js" \
54
-F "react.min=@build/react.min.js" \
package.json
+1
-1
@@ -43,7 +43,7 @@
43
"eslint": "^0.14.1",
44
"esprima-fb": "^13001.1001.0-dev-harmony-fb",
45
"grunt": "~0.4.2",
46
- "grunt-cli": "~0.1.9",
46
+ "grunt-cli": "^0.1.13",
47
"grunt-compare-size": "~0.4.0",
48
"grunt-contrib-clean": "^0.6.0",
49
"grunt-contrib-compress": "^0.13.0",