diff options
| author | Benoit Pierre <benoit.pierre@gmail.com> | 2018-03-26 18:34:40 +0200 |
|---|---|---|
| committer | Paul Ganssle <paul@ganssle.io> | 2018-03-27 14:48:16 -0400 |
| commit | 58d299de99612f76f2ff5cfe7fb142d95e5e8738 (patch) | |
| tree | 190776940665eabdba6e07d184b320862c4a5114 /.travis.yml | |
| parent | 685987d6275f8d9f5815c0f80bf581fb3d6d02fd (diff) | |
| download | external_python_setuptools-58d299de99612f76f2ff5cfe7fb142d95e5e8738.tar.gz external_python_setuptools-58d299de99612f76f2ff5cfe7fb142d95e5e8738.tar.bz2 external_python_setuptools-58d299de99612f76f2ff5cfe7fb142d95e5e8738.zip | |
Improve speed and clarity of code coverage
Rationale:
- tox should work the same as before
- coverage is too slow and disabled by default locally
- disable coverage on pypy and pypy3 (way too slow)
- add coverage info for pkg_resources
- make sure tests are ignored in coverage
- make sure all CI jobs are identifiable
- include coverage for xfail (too complicated otherwise)
- disable report on terminal
Diffstat (limited to '.travis.yml')
| -rw-r--r-- | .travis.yml | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml index fb659f13..544b8df3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,29 +8,20 @@ python: - 3.5 - &latest_py3 3.6 - nightly -- pypy -env: - TOXENV=py jobs: fast_finish: true include: - python: *latest_py3 - env: &cenv - global: - - LANG=C - - TOXENV=py + env: LANG=C - python: *latest_py2 - env: *cenv - - python: pypy3 - # Running coverage breaks the pypy3 build on Travis only. - # Until that's fixed the pypy3 build needs to be run without coverage - script: tox -e py -- $TRAVIS_BUILD_DIR + env: LANG=C - stage: deploy (to PyPI for tagged commits) if: tag IS present python: *latest_py3 install: skip script: skip + after_success: skip before_deploy: python bootstrap.py deploy: provider: pypi @@ -43,6 +34,13 @@ jobs: distributions: release skip_cleanup: true skip_upload_docs: true + # Don't run coverage on pypy. + - python: pypy + script: tox + after_success: skip + - python: pypy3 + script: tox + after_success: skip cache: pip @@ -56,8 +54,6 @@ install: # update egg_info based on setup.py in checkout - python bootstrap.py -script: tox - -after_success: - - if [[ $TOXENV == "py" ]]; then tox -e coverage,codecov; fi +script: tox -- --cov +after_success: env TRAVIS_JOB_NAME="${TRAVIS_PYTHON_VERSION} (LANG=$LANG)" CODECOV_ENV=TRAVIS_JOB_NAME tox -e coverage,codecov |
