.travis.yml now obtains latest urchin version from the npm registry instead of directly from GitHub

master
Michael Klement 2014-11-05 23:14:59 -05:00
parent bf4bf008ac
commit 2d8adac785
1 changed files with 3 additions and 5 deletions

View File

@ -1,13 +1,11 @@
language: c # defaults to ruby language: c # defaults to ruby
install: install:
- sudo apt-get install ksh zsh -y - sudo apt-get install ksh zsh -y
- (mkdir /tmp/urchin && cd /tmp/urchin && curl -s "$(curl -s http://registry.npmjs.org/urchin | grep -Eo '"tarball":\s*"[^"]+"' | tail -n 1 | awk -F\" '{ print $4 }')" -O && tar -x -f urchin*)
- chmod +x /tmp/urchin/package/urchin
- '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y' - '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y'
before_script:
- '[ -n "$WITHOUT_CURL" ] || curl -o /tmp/urchin https://raw.githubusercontent.com/scraperwiki/urchin/master/urchin'
- '[ -z "$WITHOUT_CURL" ] || wget -O /tmp/urchin https://raw.githubusercontent.com/scraperwiki/urchin/master/urchin'
- chmod +x /tmp/urchin
script: script:
- NVM_DIR=$TRAVIS_BUILD_DIR make TEST_SUITE=$TEST_SUITE URCHIN=/tmp/urchin test-$SHELL - NVM_DIR=$TRAVIS_BUILD_DIR make TEST_SUITE=$TEST_SUITE URCHIN=/tmp/urchin/package/urchin test-$SHELL
env: env:
- SHELL=sh TEST_SUITE=install_script - SHELL=sh TEST_SUITE=install_script
- SHELL=dash TEST_SUITE=install_script - SHELL=dash TEST_SUITE=install_script