mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Add codecov integration
This commit is contained in:
@@ -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=
|
||||
|
||||
5
Makefile
5
Makefile
@@ -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
|
||||
|
||||
@@ -4,3 +4,4 @@ mkdocs==0.16.3
|
||||
pytest
|
||||
pytest-cov
|
||||
importlib_resources
|
||||
codecov
|
||||
|
||||
Reference in New Issue
Block a user