2013-07-06 20:23:02 +08:00
|
|
|
language: python
|
2018-11-11 06:28:01 +08:00
|
|
|
dist: xenial
|
2019-02-28 01:31:40 +08:00
|
|
|
python: '3.7'
|
|
|
|
cache: false
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- PYTEST_ADDOPTS=-vv
|
|
|
|
|
2019-08-01 20:37:02 +08:00
|
|
|
# setuptools-scm needs all tags in order to obtain a proper version
|
|
|
|
git:
|
|
|
|
depth: false
|
|
|
|
|
2017-08-15 06:19:20 +08:00
|
|
|
install:
|
2019-02-27 00:06:03 +08:00
|
|
|
- python -m pip install --upgrade --pre tox
|
2019-02-06 23:11:00 +08:00
|
|
|
|
2018-02-10 06:59:15 +08:00
|
|
|
jobs:
|
2016-12-13 22:16:06 +08:00
|
|
|
include:
|
2019-03-01 21:55:09 +08:00
|
|
|
# OSX tests - first (in test stage), since they are the slower ones.
|
2019-10-17 06:01:54 +08:00
|
|
|
# Coverage for:
|
|
|
|
# - osx
|
|
|
|
# - verbose=1
|
2019-05-28 07:31:52 +08:00
|
|
|
- os: osx
|
2019-02-26 19:31:31 +08:00
|
|
|
osx_image: xcode10.1
|
|
|
|
language: generic
|
2019-10-17 06:01:54 +08:00
|
|
|
env: TOXENV=py37-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS=-v
|
2018-08-27 22:13:43 +08:00
|
|
|
before_install:
|
2019-02-26 19:31:31 +08:00
|
|
|
- which python3
|
|
|
|
- python3 -V
|
|
|
|
- ln -sfn "$(which python3)" /usr/local/bin/python
|
|
|
|
- python -V
|
|
|
|
- test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 37
|
2016-11-12 05:03:18 +08:00
|
|
|
|
2019-05-28 07:31:52 +08:00
|
|
|
# Full run of latest supported version, without xdist.
|
2019-10-17 06:07:52 +08:00
|
|
|
# Coverage for:
|
2019-10-27 09:54:33 +08:00
|
|
|
# - pytester's LsofFdLeakChecker
|
|
|
|
# - TestArgComplete (linux only)
|
|
|
|
# - numpy
|
|
|
|
# - old attrs
|
|
|
|
# - verbose=0
|
2019-10-17 06:07:52 +08:00
|
|
|
# - test_sys_breakpoint_interception (via pexpect).
|
2019-10-27 09:54:33 +08:00
|
|
|
- env: TOXENV=py37-lsof-numpy-oldattrs-pexpect-twisted PYTEST_COVERAGE=1 PYTEST_ADDOPTS=
|
2019-03-01 21:55:09 +08:00
|
|
|
python: '3.7'
|
|
|
|
|
2020-01-11 03:18:12 +08:00
|
|
|
# Coverage for Python 3.5.{0,1} specific code, mostly typing related.
|
|
|
|
- env: TOXENV=py35 PYTEST_COVERAGE=1 PYTEST_ADDOPTS="-k test_raises_cyclic_reference"
|
|
|
|
python: '3.5.1'
|
|
|
|
dist: trusty
|
2020-02-10 17:28:41 +08:00
|
|
|
before_install:
|
|
|
|
# Work around https://github.com/jaraco/zipp/issues/40.
|
|
|
|
- python -m pip install -U pip 'setuptools>=34.4.0' virtualenv
|
2019-03-01 21:55:09 +08:00
|
|
|
|
2017-09-27 06:46:50 +08:00
|
|
|
before_script:
|
2019-03-01 02:40:24 +08:00
|
|
|
- |
|
|
|
|
# Do not (re-)upload coverage with cron runs.
|
|
|
|
if [[ "$TRAVIS_EVENT_TYPE" = cron ]]; then
|
|
|
|
PYTEST_COVERAGE=0
|
|
|
|
fi
|
2017-09-27 06:46:50 +08:00
|
|
|
- |
|
2019-02-27 04:24:03 +08:00
|
|
|
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
|
2018-09-02 21:22:20 +08:00
|
|
|
export COVERAGE_FILE="$PWD/.coverage"
|
|
|
|
export COVERAGE_PROCESS_START="$PWD/.coveragerc"
|
2018-09-17 18:00:03 +08:00
|
|
|
export _PYTEST_TOX_COVERAGE_RUN="coverage run -m"
|
2017-09-27 06:46:50 +08:00
|
|
|
export _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
|
|
|
|
fi
|
|
|
|
|
2019-11-19 06:13:21 +08:00
|
|
|
script: tox
|
2014-01-23 19:18:20 +08:00
|
|
|
|
2017-09-27 06:46:50 +08:00
|
|
|
after_success:
|
|
|
|
- |
|
2019-02-27 04:24:03 +08:00
|
|
|
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
|
2020-01-23 21:44:30 +08:00
|
|
|
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh -F Travis
|
2017-09-27 06:46:50 +08:00
|
|
|
fi
|
|
|
|
|
2013-07-06 20:23:02 +08:00
|
|
|
notifications:
|
|
|
|
irc:
|
2015-06-19 17:35:58 +08:00
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#pytest"
|
|
|
|
on_success: change
|
|
|
|
on_failure: change
|
|
|
|
skip_join: true
|
2013-07-06 20:23:02 +08:00
|
|
|
email:
|
|
|
|
- pytest-commit@python.org
|
2019-10-22 14:23:39 +08:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- features
|
|
|
|
- 4.6-maintenance
|
|
|
|
- /^\d+(\.\d+)+$/
|