From 3d0dcf68c1734b470cfed248b7f04a9bbef70f98 Mon Sep 17 00:00:00 2001 From: rodyhaddad Date: Tue, 15 Jul 2014 11:53:27 -0700 Subject: [PATCH] chore(travis): get npm dependencies from npm-bundle-deps npm-bundle-deps has been rewritten to be more robust --- .travis.yml | 4 ++-- scripts/travis/fetch_bundle.sh | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 scripts/travis/fetch_bundle.sh diff --git a/.travis.yml b/.travis.yml index e3ec7615e4e4..11cc52ed9432 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/scripts/travis/fetch_bundle.sh b/scripts/travis/fetch_bundle.sh new file mode 100755 index 000000000000..c15e56164f41 --- /dev/null +++ b/scripts/travis/fetch_bundle.sh @@ -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