Skip to content

Commit 6b7f23d

Browse files
authored
Merge branch 'development' into get_free__Call_Auth
2 parents ca639b2 + 7b99db8 commit 6b7f23d

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.circleci/config.yml

Lines changed: 11 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,15 @@ 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
56+
- store_test_results:
57+
path: test-reports
5258
- store_artifacts:
5359
path: test-reports
54-
destination: test-reports
60+
#destination: test-reports

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Snet-Platform-Usage
22
[![CircleCI](https://circleci.com/gh/singnet/snet-platform-usage.svg?style=svg)](https://circleci.com/gh/singnet/snet-platform-usage)
3+
[![Coverage Status](https://coveralls.io/repos/github/singnet/snet-platform-usage/badge.svg?branch=master)](https://coveralls.io/github/singnet/snet-platform-usage?branch=master)

0 commit comments

Comments
 (0)