aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Ganssle <pganssle@users.noreply.github.com>2018-10-22 12:36:05 -0400
committerGitHub <noreply@github.com>2018-10-22 12:36:05 -0400
commit5b90a0d9d97f52fc91792a8143670ee1a73f51c5 (patch)
treef5626fb351125973daffb0df441b41c714efd2ed
parentc2f72efd261bf89372dfa27b1c115012e74bd525 (diff)
parent604fc1ec955db2ce6e0c021073462cb3f4fac667 (diff)
downloadexternal_python_setuptools-5b90a0d9d97f52fc91792a8143670ee1a73f51c5.tar.gz
external_python_setuptools-5b90a0d9d97f52fc91792a8143670ee1a73f51c5.tar.bz2
external_python_setuptools-5b90a0d9d97f52fc91792a8143670ee1a73f51c5.zip
Merge pull request #1514 from benoit-pierre/update_ci_builds
Update CI builds
-rw-r--r--.travis.yml65
-rw-r--r--appveyor.yml11
-rw-r--r--tox.ini2
3 files changed, 42 insertions, 36 deletions
diff --git a/.travis.yml b/.travis.yml
index 63d0333a..0e53bd29 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,25 +1,32 @@
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
)
diff --git a/appveyor.yml b/appveyor.yml
index f50f8386..ef4a9f7e 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,3 +1,5 @@
+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
diff --git a/tox.ini b/tox.ini
index 3b03b7db..a2f850df 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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