Skip to content

Commit 48acfc8

Browse files
committed
Integrating Coverall for platform-usage
1 parent 7a95e9f commit 48acfc8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.circleci/config.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
cd metering
3333
cp tests/alembic.ini .
3434
cp tests/test-settings.py settings.py
35-
sudo pip install alembic
36-
sudo pip install pymysql
37-
sudo pip install cryptography
35+
sudo pip install alembic pymysql cryptography
3836
PYTHONPATH=$PWD
3937
alembic upgrade head
4038
- run:
@@ -48,7 +46,13 @@ jobs:
4846
name: run tests for metering
4947
command: |
5048
cd metering
51-
PYTHONPATH=$PWD python tests/test_total_calls.py
49+
sudo pip install coverage coveralls pytest
50+
rm tests/__init__.py
51+
PYTHONPATH=$PWD coverage run -m pytest tests/test_total_calls.py
52+
coverage report -m
53+
mkdir ../test-reports
54+
coverage html -d ../test-reports
55+
COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} coveralls
5256
- store_artifacts:
5357
path: test-reports
54-
destination: test-reports
58+
#destination: test-reports

0 commit comments

Comments
 (0)