Skip to content

Commit 59a8281

Browse files
committed
Add codecov to Travis CI config
1 parent 105a0d4 commit 59a8281

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.coveragerc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
branch = true
3+
source = frontera

.travis.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
language: python
22
python: 2.7
3+
34
env:
45
- TOXENV=py27
56
- TOXENV=flake8
7+
68
install:
7-
- pip install -U tox wheel
9+
- pip install -U tox wheel codecov
810
- pip install -r requirements/tests.txt
11+
912
before_script:
1013
- mysql -u root -e "set global innodb_large_prefix=1;"
1114
- mysql -u root -e "set global innodb_file_format='Barracuda';"
1215
- mysql -u root -e "set global innodb_file_per_table=true;"
1316
- tests/run_zmq_broker.sh
17+
1418
script: tox
19+
20+
after_success:
21+
- codecov
22+
1523
deploy:
1624
provider: pypi
1725
distributions: sdist bdist_wheel

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ deps =
1313
-r{toxinidir}/requirements.txt
1414
-r{toxinidir}/requirements/tests.txt
1515
commands =
16-
py.test --cov=frontera -s -v tests
16+
py.test --cov-report=term --cov=frontera -s -v tests
1717

1818
[testenv:flake8]
1919
changedir = {toxinidir}

0 commit comments

Comments
 (0)