mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Use bash codecov
This commit is contained in:
parent
461fab84ec
commit
7744070568
1 changed files with 6 additions and 5 deletions
11
Makefile
11
Makefile
|
|
@ -9,6 +9,8 @@ export CI := false
|
||||||
export COVERAGE := $(CI)
|
export COVERAGE := $(CI)
|
||||||
export DETERMINISTIC_TESTS := false
|
export DETERMINISTIC_TESTS := false
|
||||||
|
|
||||||
|
CODECOV_PATH = /tmp/codecov.sh
|
||||||
|
|
||||||
PYTEST_ARGS =
|
PYTEST_ARGS =
|
||||||
TEST_EXTRA_PACKAGES =
|
TEST_EXTRA_PACKAGES =
|
||||||
ifeq ($(COVERAGE), true)
|
ifeq ($(COVERAGE), true)
|
||||||
|
|
@ -17,15 +19,14 @@ ifeq ($(COVERAGE), true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CI), true)
|
ifeq ($(CI), true)
|
||||||
TEST_EXTRA_PACKAGES += codecov
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
curl -s https://codecov.io/bash > $(CODECOV_PATH)
|
||||||
py.test $(PYTEST_ARGS) tests/unit/
|
py.test $(PYTEST_ARGS) tests/unit/
|
||||||
codecov -F unit
|
bash $(CODECOV_PATH) -c -F unit
|
||||||
py.test $(PYTEST_ARGS) tests/system/
|
py.test $(PYTEST_ARGS) tests/system/
|
||||||
codecov -F system
|
bash $(CODECOV_PATH) -c -F system
|
||||||
py.test $(PYTEST_ARGS) tests/storage/
|
py.test $(PYTEST_ARGS) tests/storage/
|
||||||
codecov -F storage
|
bash $(CODECOV_PATH) -c -F storage
|
||||||
else
|
else
|
||||||
test:
|
test:
|
||||||
py.test $(PYTEST_ARGS)
|
py.test $(PYTEST_ARGS)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue