Add codecov target too
This commit is contained in:
parent
64d04a29ab
commit
dce46603bf
17
Makefile
17
Makefile
@ -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)
|
||||
|
Reference in New Issue
Block a user