Skip to content

Commit e2cbc5d

Browse files
authored
Publish coverage to coveralls (#35)
1 parent 5ade4a5 commit e2cbc5d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ pip-log.txt
3939
.coverage*
4040
.tox
4141
.noseids
42+
htmlcov/
4243

4344
# Translations
4445
*.mo

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@ matrix:
77
- python: '2.7'
88
env: COVER=1
99
- python: '3.3'
10-
env: COVER=0
1110
- python: '3.4'
12-
env: COVER=0
1311
- python: '3.5'
14-
env: COVER=0
1512
- python: '3.6'
16-
env: COVER=0
1713

1814
before_install:
1915
- bash travis/install-redis.sh
@@ -23,3 +19,7 @@ install:
2319

2420
script:
2521
- make test lint
22+
23+
after_success:
24+
if [ "$COVER" = "1" ]; then coveralls -v ; fi
25+

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ lint:
6161
test:
6262
$(pytest) $(test_args)
6363

64-
coverage:
65-
coverage run --source $(project) setup.py test
66-
coverage report -m
64+
coverage: test
6765
coverage html
6866
open htmlcov/index.html
6967

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
],
3434
extras_require={
3535
'tests': [
36+
'coveralls',
3637
'doubles',
3738
'flake8<3', # see https://github.com/zheller/flake8-quotes/issues/29
3839
'flake8-quotes',

0 commit comments

Comments
 (0)