Added travis config, fixed tests for use on travis

master
Koen Punt 2014-03-16 19:05:28 +01:00
parent db4c582d79
commit 38a0c997e2
3 changed files with 7 additions and 2 deletions

5
.travis.yml 100644
View File

@ -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

View File

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

View File

@ -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