Add codecov (#22649)

This commit is contained in:
Jason Hu 2019-04-01 20:31:05 -07:00 committed by GitHub
parent 39eaa7fc8d
commit 7646dc00e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View file

@ -172,13 +172,14 @@ jobs:
- install
- run:
name: run tests
name: run tests with code coverage
command: |
. venv/bin/activate
CC_SWITCH="--cov --cov-report="
TESTFILES=$(circleci tests glob "tests/**/test_*.py" | circleci tests split --split-by=timings)
if [ -z "$CODE_COVERAGE" ]; then CC_SWITCH=""; else CC_SWITCH="--cov --cov-report html:htmlcov"; fi
pytest --timeout=9 --duration=10 --junitxml=test-reports/homeassistant/results.xml -qq -o junit_family=xunit2 -o junit_suite_name=homeassistant -o console_output_style=count -p no:sugar $CC_SWITCH -- ${TESTFILES}
script/check_dirty
codecov
- store_test_results:
path: test-reports

View file

@ -2,6 +2,7 @@
# make new things fail. Manually update these pins when pulling in a
# new version
asynctest==0.12.2
codecov==2.0.15
coveralls==1.2.0
flake8-docstrings==1.3.0
flake8==3.7.7

View file

@ -3,6 +3,7 @@
# make new things fail. Manually update these pins when pulling in a
# new version
asynctest==0.12.2
codecov==2.0.15
coveralls==1.2.0
flake8-docstrings==1.3.0
flake8==3.7.7