Initial commit

This commit is contained in:
github-classroom[bot] 2025-01-09 14:30:05 +00:00 • committed by GitHub
commit 4719d0fa73
2 changed files with 31 additions and 0 deletions

16
Makefile Normal file
View 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