parent
ba1e2f1cdf
commit
52a384a0cc
|
@ -2,4 +2,4 @@ language: bash
|
||||||
before_script:
|
before_script:
|
||||||
- curl -o /tmp/urchin https://raw.github.com/scraperwiki/urchin/master/urchin && chmod +x /tmp/urchin
|
- curl -o /tmp/urchin https://raw.github.com/scraperwiki/urchin/master/urchin && chmod +x /tmp/urchin
|
||||||
script:
|
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; }
|
die () { echo $@ ; exit 1; }
|
||||||
|
|
||||||
. ../../nvm.sh
|
. ../../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