Skip to content

Commit

Permalink
travis: Modernize to use pytest and pytest-cov directly
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Dec 24, 2019
1 parent 0c3569c commit 5d2e1e1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ python:
- 3.7
- pypy3
if: (type = push AND branch IN (master)) OR (type = pull_request)
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 'travis@nowhere.edu'
cache:
- pip
install:
- "pip install -e ."
script: coverage run --source=cihai_cli setup.py test
- pip install -e .
- pip install -r requirements/test.txt
script: py.test --cov=cihai_cli
after_success:
- bash <(curl -s https://codecov.io/bash)

0 comments on commit 5d2e1e1

Please sign in to comment.