Initial commit
This commit is contained in:
commit
4719d0fa73
2 changed files with 31 additions and 0 deletions
16
Makefile
Normal file
16
Makefile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
BRANCH?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
test:
|
||||
@$(MAKE) -sk test-all
|
||||
|
||||
test-all: test-code test-quiz
|
||||
|
||||
test-code:
|
||||
@[ "$(BRANCH)" = "master" -o -z "$(BRANCH)" ] \
|
||||
|| [ ! -f "$(BRANCH)/Makefile" ] \
|
||||
|| (cd $(BRANCH) && make -s test)
|
||||
|
||||
test-quiz:
|
||||
@[ "$(BRANCH)" = "master" -o -z "$(BRANCH)" ] \
|
||||
|| [ ! -f "$(BRANCH)/answers.json" -a ! -f "$(BRANCH)/answers.yaml" ] \
|
||||
|| .scripts/check.py
|
||||
Loading…
Reference in a new issue