commit
6123fbcd31
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue