Skip to content

Commit

Permalink
travis: Simplify to use pytest-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Dec 24, 2019
1 parent 44fd124 commit e9ef2cd
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@ python:
- 3.7
- pypy3
cache: pip
before_install:
- export PIP_USE_MIRRORS=true
- pip install -U pip setuptools
- pip install -U pytest mock # https://github.com/travis-ci/travis-ci/issues/4873
- pip install coveralls
- git config --global user.name 'travis-ci'
- git config --global user.email '[email protected]'
install:
- "pip install -e ."
script: coverage run --source=unihan_db setup.py test
- pip install -e .
- pip install -r requirements/test.txt
script: py.test --cov=unihan_db
after_success:
- bash <(curl -s https://codecov.io/bash)

0 comments on commit e9ef2cd

Please sign in to comment.