Commit 5b90a0d9 authored by Paul Ganssle's avatar Paul Ganssle Committed by GitHub

Merge pull request #1514 from benoit-pierre/update_ci_builds

Update CI builds
parents c2f72efd 604fc1ec
dist: trusty
sudo: false
language: python
python:
- &latest_py2 2.7
- 3.4
- 3.5
- &latest_py3 3.6
- nightly
- pypy
- pypy3
jobs:
fast_finish: true
include:
- python: *latest_py3
- &latest_py2
python: 2.7
- <<: *latest_py2
env: LANG=C
- python: *latest_py2
- python: pypy
env: DISABLE_COVERAGE=1 # Don't run coverage on pypy (too slow).
- python: pypy3
env: DISABLE_COVERAGE=1
- python: 3.4
- python: 3.5
- &default_py
python: 3.6
- &latest_py3
python: 3.7
dist: xenial
- <<: *latest_py3
env: LANG=C
- stage: deploy (to PyPI for tagged commits)
- python: 3.8-dev
dist: xenial
env: DISABLE_COVERAGE=1 # Ignore invalid coverage data.
- <<: *default_py
stage: deploy (to PyPI for tagged commits)
if: tag IS present
python: *latest_py3
install: skip
script: skip
after_success: true
......@@ -39,12 +46,14 @@ jobs:
cache: pip
install:
# ensure we have recent pip/setuptools
- pip install --upgrade pip setuptools
# ensure we have recent pip/setuptools/wheel
- pip install --disable-pip-version-check --upgrade pip setuptools wheel
# need tox to get started
- pip install tox tox-venv
- pip install --upgrade tox tox-venv
# Output the env, to verify behavior
- pip freeze --all
- env
# update egg_info based on setup.py in checkout
......@@ -53,28 +62,20 @@ install:
script:
- |
( # Run testsuite.
set -ex
case $TRAVIS_PYTHON_VERSION in
pypy*)
# Don't run coverage on pypy (too slow).
tox
;;
*)
if [ -z "$DISABLE_COVERAGE" ]
then
tox -- --cov
;;
esac
else
tox
fi
)
after_success:
- |
( # Upload coverage data.
set -ex
case $TRAVIS_PYTHON_VERSION in
pypy*)
;;
*)
if [ -z "$DISABLE_COVERAGE" ]
then
export TRAVIS_JOB_NAME="${TRAVIS_PYTHON_VERSION} (LANG=$LANG)" CODECOV_ENV=TRAVIS_JOB_NAME
tox -e coverage,codecov
;;
esac
fi
)
clone_depth: 50
environment:
APPVEYOR: True
......@@ -21,9 +23,12 @@ cache:
- '%LOCALAPPDATA%\pip\Cache'
test_script:
- "python bootstrap.py"
- "python -m pip install tox"
- "tox -- --cov"
- python --version
- python -m pip install --disable-pip-version-check --upgrade pip setuptools wheel
- pip install --upgrade tox tox-venv
- pip freeze --all
- python bootstrap.py
- tox -- --cov
after_test:
- tox -e coverage,codecov
......
......@@ -37,7 +37,7 @@ commands=coverage erase
description=[Only run on CI]: Upload coverage data to codecov
deps=codecov
skip_install=True
commands=codecov --file {toxworkdir}/coverage.xml
commands=codecov -X gcov --file {toxworkdir}/coverage.xml
[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment