abra/Makefile

23 lines
539 B
Makefile
Raw Normal View History

default: test
2020-09-08 06:48:53 +00:00
test:
2020-10-26 16:48:19 +00:00
@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 && \
2020-09-08 07:19:03 +00:00
chmod +x yq_linux_amd64 && \
mv yq_linux_amd64 ~/.local/bin/yq
2020-09-08 07:19:03 +00:00
2020-10-25 20:41:17 +00:00
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
2020-10-26 10:20:09 +00:00
coverage:
@kcov coverage kcov
2020-10-25 20:41:17 +00:00
2020-10-26 16:48:12 +00:00
.PHONY: test dev-install-yq docopt coverage