23 lines
539 B
Makefile
23 lines
539 B
Makefile
default: test
|
|
|
|
test:
|
|
@docker run -it --rm -v "$(pwd):/workdir" docker:dind apk add bats && bats test.bats
|
|
|
|
dev-install-yq:
|
|
@wget https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_amd64 && \
|
|
chmod +x yq_linux_amd64 && \
|
|
mv yq_linux_amd64 ~/.local/bin/yq
|
|
|
|
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 dev-install-yq docopt coverage
|