Added travis config, fixed tests for use on travis
parent
db4c582d79
commit
38a0c997e2
|
@ -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,4 +2,4 @@
|
||||||
|
|
||||||
. ../../nvm.sh
|
. ../../nvm.sh
|
||||||
nvm alias test v0.1.2
|
nvm alias test v0.1.2
|
||||||
[ $(cat ../../alias/test) = 'v0.1.2' ]
|
[ "$(cat ../../alias/test)" = "v0.1.2" ]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# Restore
|
# Restore
|
||||||
if [ -d bak ]
|
if [ -d bak ]
|
||||||
then
|
then
|
||||||
mv bak/* . || sleep 0s
|
mv bak/* . > /dev/null 2>&1 || sleep 0s
|
||||||
rmdir bak
|
rmdir bak
|
||||||
fi
|
fi
|
||||||
mkdir -p src alias
|
mkdir -p src alias
|
||||||
|
|
Loading…
Reference in New Issue