chore(travis): get npm dependencies from npm-bundle-deps

npm-bundle-deps has been rewritten to be more robust
This commit is contained in:
rodyhaddad
2014-07-15 11:53:27 -07:00
parent aa7dbf0cf7
commit 3d0dcf68c1
2 changed files with 11 additions and 2 deletions

View File

@@ -24,8 +24,8 @@ install:
- npm config set spin false
# Log HTTP requests
- npm config set loglevel http
# Run npm install twice, because it is flaky.
- npm install || npm install
- time ./scripts/travis/fetch_bundle.sh
- time npm install
before_script:
- mkdir -p $LOGS_DIR

9
scripts/travis/fetch_bundle.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
# normalize the working dir to the directory of the script
cd $(dirname $0);
cd ../..
curl "http://23.251.148.50:8000/tar/$TRAVIS_REPO_SLUG/$TRAVIS_COMMIT" | tar xz