Skip to content

Commit f309c7c

Browse files
slivercn2ygk
authored andcommitted
Enforce successful upload of coverage files codecov (django-json-api#530)
1 parent fd77738 commit f309c7c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pip-delete-this-directory.txt
3434

3535
# Coverage
3636
.coverage
37+
coverage.xml
3738

3839
# Tox
3940
.tox/

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ script:
100100
- tox
101101
after_success:
102102
- pip install codecov
103-
- codecov -e TOXENV
103+
- codecov -e TOXENV --required

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ setenv =
2424
DJANGO_SETTINGS_MODULE=example.settings.test
2525

2626
commands =
27-
python setup.py test --addopts '--cov --no-cov-on-fail' {posargs}
27+
python setup.py test --addopts '--cov --no-cov-on-fail --cov-report xml' {posargs}
2828

2929
[testenv:flake8]
3030
deps =

0 commit comments

Comments
 (0)