23 lines
377 B
Makefile
23 lines
377 B
Makefile
default: test
|
|
|
|
test:
|
|
@docker run \
|
|
-it \
|
|
--rm \
|
|
-v "$(pwd):/workdir" \
|
|
docker:dind \
|
|
apk add bats && bats test.bats
|
|
|
|
docopt:
|
|
@if [ ! -d ".venv" ]; then \
|
|
python3 -m venv .venv && \
|
|
.venv/bin/pip install -U pip setuptools wheel && \
|
|
.venv/bin/pip install docopt-sh; \
|
|
fi
|
|
.venv/bin/docopt.sh abra
|
|
|
|
coverage:
|
|
@kcov coverage kcov
|
|
|
|
.PHONY: test docopt coverage
|