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