Skip to content

Commit

Permalink
codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
tfranzel committed Mar 17, 2020
1 parent 3c0fa2d commit dde1af8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ jobs:
- env: TOXENV=py38-djmaster

install:
- pip install -U pip
- pip install tox

script:
- tox
- tox

after_success:
- pip install codecov
- codecov -e TOXENV
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
drf-spectacular
===============

|build-status-image| |pypi-version|
|build-status-image| |codecov| |pypi-version|

Sane and flexible `OpenAPI 3 <https://github.com/OAI/OpenAPI-Specification>`_ schema generation for `Django REST framework <https://www.django-rest-framework.org/>`_.

Expand Down Expand Up @@ -221,3 +221,5 @@ globally, and then simply run:
:target: https://travis-ci.org/tfranzel/drf-spectacular?branch=master
.. |pypi-version| image:: https://img.shields.io/pypi/v/drf-spectacular.svg
:target: https://pypi.python.org/pypi/drf-spectacular
.. |codecov| image:: https://codecov.io/gh/tfranzel/drf-spectacular/branch/master/graph/badge.svg
:target: https://codecov.io/gh/tfranzel/drf-spectacular
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ envlist =
skip_missing_interpreters = true

[testenv]
commands = ./runtests.py --fast
commands = ./runtests.py --fast --cov=drf_spectacular --cov=tests
setenv =
PYTHONDONTWRITEBYTECODE=1
passenv =
TRAVIS
CI TRAVIS TRAVIS_*
deps =
django2.2: Django==2.2
django3.0: Django==3.0
Expand Down

0 comments on commit dde1af8

Please sign in to comment.