-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify travis CI, update pytest / cov, add caching for pip (#225)
Similar commit in unihan-etl: - cihai/unihan-etl@051bd6d - cihai/unihan-etl#196 More into on setup.py test being removed: - http://doc.pytest.org/en/5.3.2/changelog.html#pytest-3-6-2-2018-06-20 - pytest-dev/pytest#3552
- Loading branch information
Showing
5 changed files
with
105 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
language: python | ||
sudo: false | ||
dist: bionic # 18.04 | ||
if: (type = push AND branch IN (master)) OR (type = pull_request) | ||
python: | ||
- 2.7 | ||
- 3.6 | ||
- 3.7 | ||
- pypy | ||
- pypy3 | ||
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]' | ||
cache: pip | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
pytest<=5.1 | ||
pytest<6 | ||
pytest-cov | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters