Merge pull request #378 from koenpunt/ci

Added travis config, fixed tests for use on travis
master
Jordan Harband 2014-03-17 09:59:42 -07:00
commit 020f61500f
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