Add codecov integration

This commit is contained in:
Sebastian Thiel
2018-10-28 12:07:01 +01:00
parent 9174c01f29
commit 3eca215447
3 changed files with 10 additions and 0 deletions

View File

@@ -25,8 +25,12 @@ script:
- make cargo-api ARGS=doc
- "if [[ $TRAVIS_RUST_VERSION = nightly ]]; then cargo test; fi"
after_success:
- make codecov-upload
env:
global:
- CODECOV_TOKEN: "7373de4d-4917-4634-99e4-1c535f232c30"
- PYENV_VERSION: 2.7.14
- PYENV_ROOT: $HOME/.pyenv
- secure: Plj5DqAQX/4+KPM+nOAZ2sCbGIsoSrHo1YggfesQnU7paR734XO/4IayWnsNO/3q6bDi4GIcn56RUZAD3xBJJBNLia2CYIickIIYORRqLWbLdbzQaxBbD670ahtzEuUSFJTRKURPwFteAnsWYgNMNzwXOVNwLS5IUBqWTcS+N0g=

View File

@@ -49,6 +49,8 @@ help:
$(info publish-api - publish all api crates to crates.io)
$(info publish-cli - publish all cli crates to crates.io, required for `cargo install` to work)
$(info deps - generate a file to tell how to build libraries and programs)
$(info test-gen - run unit tests for python code, including coverage)
$(info test - run all tests)
$(info help - print this help)
$(VENV):
@@ -85,6 +87,9 @@ regen-apis: | clean-all-api clean-all-cli gen-all-api gen-all-cli license
test-gen: $(PYTHON)
$(PYTEST) --cov=src src
codecov-upload:
$(VENV_DIR)/bin/codecov
test: test-gen
clean: clean-all-api clean-all-cli docs-all-clean

View File

@@ -4,3 +4,4 @@ mkdocs==0.16.3
pytest
pytest-cov
importlib_resources
codecov