From e534e0730e4eaf5fea577e0ecfab2b2b375a3370 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Wed, 22 Apr 2015 13:00:42 -0700 Subject: [PATCH] Use local `grunt` executable on Travis Builds have been flaky lately. Maybe this will help? --- .travis.yml | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8e126cc8ce..bcda3b5915 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ before_install: echo "Only docs were updated, stopping build process." exit fi + npm install -g npm script: - | if [ "$TEST_TYPE" = build_website ]; then @@ -42,12 +43,12 @@ script: popd fi else - grunt $TEST_TYPE + ./node_modules/.bin/grunt $TEST_TYPE fi after_script: - | if [ "$TEST_TYPE" = test ] && [ "$SERVER" ]; then - grunt build + ./node_modules/.bin/grunt build curl \ -F "react=@build/react.js" \ -F "react.min=@build/react.min.js" \ diff --git a/package.json b/package.json index 8e695abeea..9c806dddb6 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "eslint": "^0.14.1", "esprima-fb": "^13001.1001.0-dev-harmony-fb", "grunt": "~0.4.2", - "grunt-cli": "~0.1.9", + "grunt-cli": "^0.1.13", "grunt-compare-size": "~0.4.0", "grunt-contrib-clean": "^0.6.0", "grunt-contrib-compress": "^0.13.0",