You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
574 B
25 lines
574 B
URCHIN=`which urchin` |
|
SHELLS=sh bash dash ksh zsh |
|
TEST_SUITE=fast |
|
|
|
.PHONY: $(SHELLS) test verify-tag release |
|
|
|
$(SHELLS): |
|
@printf '\n\033[0;34m%s\033[0m\n' "Running tests in $@" |
|
@$@ $(URCHIN) -f test/$(TEST_SUITE) |
|
|
|
test: $(SHELLS) |
|
@$(URCHIN) -f test/slow |
|
|
|
default: test |
|
|
|
verify-tag: |
|
ifndef TAG |
|
$(error TAG is undefined) |
|
endif |
|
|
|
release: verify-tag |
|
@ OLD_TAG=`git describe --abbrev=0 --tags` && \ |
|
npm version "$(TAG)" && \ |
|
replace "$${OLD_TAG/v/}" "$(TAG)" -- nvm.sh install.sh README.markdown && \ |
|
git commit --amend nvm.sh install.sh README.markdown package.json
|
|
|