-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add travis builds + code coverage reports (#1)
* Add code coverage and travis build Enable travis builds to build project and publish code coverage results. Now we require all branches merged to main to pass the build and get 100% code coverage.
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
language: python | ||
python: | ||
- '3.7' | ||
before_install: | ||
- pip install poetry | ||
- pip install codecov | ||
install: | ||
- poetry install -v | ||
- pip install tox-travis | ||
- pip install flake8 | ||
script: | ||
- tox | ||
- flake8 | ||
after_success: | ||
- codecov | ||
- bash <(curl -s https://codecov.io/bash) | ||
before_deploy: | ||
- poetry build | ||
#deploy: | ||
# skip_cleanup: true | ||
# provider: pypi | ||
# username: __token__ | ||
# password: | ||
# secure: | ||
# skip_existing: true | ||
# on: | ||
# branch: master | ||
# tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
coverage: | ||
status: | ||
patch: | ||
default: | ||
target: 100% | ||
project: | ||
default: | ||
target: 100% | ||
|
||
comment: false |