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
.PHONY: test docopt kcov codecov
test:
@docker run \
-it \
--rm \
-v "$(pwd):/workdir" \
-v $$(pwd):/workdir \
docker:dind \
apk add bats && bats test.bats
@ -16,7 +17,15 @@ docopt:
fi
.venv/bin/docopt.sh abra
coverage:
@kcov coverage kcov
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)