Browse Source

Added travis config, fixed tests for use on travis

install_use_nvmrc
Koen Punt 11 years ago
parent
commit
38a0c997e2
  1. 5
      .travis.yml
  2. 2
      test/fast/Running "nvm alias" should create a file in the alias directory.
  3. 2
      test/fast/teardown_dir

5
.travis.yml

@ -0,0 +1,5 @@
language: bash
before_script:
- curl -o /tmp/urchin https://raw.github.com/scraperwiki/urchin/master/urchin && chmod +x /tmp/urchin
script:
- NVM_DIR=$TRAVIS_BUILD_DIR /tmp/urchin test

2
test/fast/Running "nvm alias" should create a file in the alias directory.

@ -2,4 +2,4 @@
. ../../nvm.sh
nvm alias test v0.1.2
[ $(cat ../../alias/test) = 'v0.1.2' ]
[ "$(cat ../../alias/test)" = "v0.1.2" ]

2
test/fast/teardown_dir

@ -6,7 +6,7 @@
# Restore
if [ -d bak ]
then
mv bak/* . || sleep 0s
mv bak/* . > /dev/null 2>&1 || sleep 0s
rmdir bak
fi
mkdir -p src alias

Loading…
Cancel
Save