split tests by shell
parent
db8acf11fd
commit
79203ba5d0
10
.travis.yml
10
.travis.yml
|
@ -4,5 +4,11 @@ install:
|
||||||
before_script:
|
before_script:
|
||||||
- curl -o /tmp/urchin https://raw.githubusercontent.com/scraperwiki/urchin/master/urchin && chmod +x /tmp/urchin
|
- curl -o /tmp/urchin https://raw.githubusercontent.com/scraperwiki/urchin/master/urchin && chmod +x /tmp/urchin
|
||||||
script:
|
script:
|
||||||
- NVM_DIR=$TRAVIS_BUILD_DIR make URCHIN=/tmp/urchin test
|
- NVM_DIR=$TRAVIS_BUILD_DIR make URCHIN=/tmp/urchin test_shell
|
||||||
|
env:
|
||||||
|
- SHELL=sh TEST_SUITE=fast
|
||||||
|
- SHELL=dash TEST_SUITE=fast
|
||||||
|
- SHELL=bash TEST_SUITE=fast
|
||||||
|
- SHELL=zsh TEST_SUITE=fast
|
||||||
|
- SHELL=ksh TEST_SUITE=fast
|
||||||
|
# - SHELL=bash TEST_SUITE=slow
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -1,7 +1,7 @@
|
||||||
URCHIN=`which urchin`
|
URCHIN=`which urchin`
|
||||||
SHELLS=sh bash dash ksh zsh
|
SHELLS=sh bash dash ksh zsh
|
||||||
|
|
||||||
.PHONY: $(SHELLS) test
|
.PHONY: $(SHELLS) test test_shell
|
||||||
|
|
||||||
fast: $(SHELLS)
|
fast: $(SHELLS)
|
||||||
|
|
||||||
|
@ -12,5 +12,8 @@ $(SHELLS):
|
||||||
test: fast
|
test: fast
|
||||||
@$(URCHIN) -f test/slow
|
@$(URCHIN) -f test/slow
|
||||||
|
|
||||||
|
test_shell:
|
||||||
|
@$(SHELL) $(URCHIN) -f test/$(TEST_SUITE)
|
||||||
|
|
||||||
default: test
|
default: test
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue