Created
March 8, 2014 00:32
-
-
Save davidchambers/9423195 to your computer and use it in GitHub Desktop.
Exclude files with "doctest ignore" in first line when running doctests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOCTEST = node_modules/.bin/doctest --module commonjs | |
.PHONY: test | |
test: JS_FILES = $(shell find . -name '*.js' -not -path './node_modules/*' -not -path './test/*') | |
test: | |
@$(foreach file,$(JS_FILES),head -n 1 -- $(file) | grep --silent 'doctest ignore' - || $(DOCTEST) $(file) || exit 1;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment