Merge pull request #386 from koenpunt/multi-shell-test

Add Makefile for multishell testing
master
Jordan Harband 2014-03-22 13:08:50 -07:00
commit 6123fbcd31
3 changed files with 19 additions and 2 deletions

View File

@ -1,5 +1,7 @@
language: bash
install:
- sudo apt-get install ksh zsh -y
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
- NVM_DIR=$TRAVIS_BUILD_DIR make URCHIN=/tmp/urchin test

15
Makefile 100644
View File

@ -0,0 +1,15 @@
URCHIN=`which urchin`
SHELLS=sh bash dash ksh zsh
.PHONY: $(SHELLS) test
fast: $(SHELLS)
$(SHELLS):
@printf '\n\033[0;34m%s\033[0m\n' "Running tests in $@"
@$@ $(URCHIN) -f test/fast
test: fast
@$(URCHIN) -f test/slow
default: test

View File

@ -3,4 +3,4 @@
die () { echo $@ ; exit 1; }
. ../../nvm.sh
[ "$(nvm current)" = `node -v` ] || die "Failed to find current version"
[ "$(nvm current)" = "$(node -v)" ] || die "Failed to find current version"