Add codecov target too

This commit is contained in:
Luke Murphy 2020-10-26 18:01:12 +01:00
parent 64d04a29ab
commit dce46603bf
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -1,10 +1,11 @@
default: test default: test
.PHONY: test docopt kcov codecov
test: test:
@docker run \ @docker run \
-it \ -it \
--rm \ --rm \
-v "$(pwd):/workdir" \ -v $$(pwd):/workdir \
docker:dind \ docker:dind \
apk add bats && bats test.bats apk add bats && bats test.bats
@ -16,7 +17,15 @@ docopt:
fi fi
.venv/bin/docopt.sh abra .venv/bin/docopt.sh abra
coverage: kcov:
@kcov coverage kcov @docker run \
-it \
--rm \
-v $$(pwd):/workdir \
kcov/kcov:latest \
kcov /workdir/coverage /workdir/abra || true
.PHONY: test docopt coverage codecov: SHELL:=/bin/bash
codecov:
@bash <(curl -s https://codecov.io/bash) \
-s coverage -t $$(pass show hosts/swarm.autonomic.zone/drone/codecov/token)