Skip to content

Commit

Permalink
Merge pull request #87 from syucream/codecov
Browse files Browse the repository at this point in the history
Use codecov to visualize coverage
  • Loading branch information
userlocalhost authored Mar 15, 2021
2 parents 3c48fa3 + 0540b94 commit ecc5f34
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
command: |
python3 -m venv venv
. venv/bin/activate
pip install tox coverage
pip install tox coverage codecov
- run:
name: Wait for MySQL is available
command: dockerize -wait tcp://127.0.0.1:3306 -timeout 120s
Expand All @@ -50,6 +50,11 @@ jobs:
paths:
- venv
- .tox/py36
- run:
name: Coverage
command: |
. venv/bin/activate
codecov
python35:
docker:
Expand Down Expand Up @@ -101,11 +106,6 @@ jobs:
paths:
- venv
- .tox/py35
- run:
name: Coverage
command: |
. venv/bin/activate
./coverage.sh

pep8:
docker:
Expand Down
7 changes: 0 additions & 7 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
[run]
branch = True
source =
acl
airone
dashboard
entity
entry
group
omit =
*/migrations/*
*/tests/*
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ commands =
pip install -r requirements-dev.txt
python manage.py makemigrations
python manage.py migrate
python manage.py test
python manage.py test tools.tests
coverage run manage.py test
coverage run manage.py test tools.tests
coverage report
whitelist_externals = rm

[testenv:py35]
# settings for selecting backend-db to use in test
passenv = AIRONE_BACKEND_DB
passenv = AIRONE_BACKEND_DB CODECOV_*
commands =
rm -f db.sqlite3
pip install -r requirements-dev.txt
python manage.py makemigrations
python manage.py migrate
coverage run manage.py test
coverage run manage.py test tools.tests
coverage xml
python manage.py test
python manage.py test tools.tests
whitelist_externals = rm

[testenv:pep8]
Expand Down

0 comments on commit ecc5f34

Please sign in to comment.