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..73f0b01fec80 --- /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.144.68:8000/fetch-tar/$TRAVIS_REPO_SLUG/$TRAVIS_COMMIT" | tar xz