2015-06-16 06:22:16 +08:00
|
|
|
sudo: false
|
2013-07-06 20:23:02 +08:00
|
|
|
language: python
|
2018-05-24 19:51:01 +08:00
|
|
|
stages:
|
2018-08-28 05:46:24 +08:00
|
|
|
- baseline
|
2018-08-30 04:54:58 +08:00
|
|
|
- name: test
|
|
|
|
if: repo = pytest-dev/pytest AND tag IS NOT present
|
2018-07-07 23:12:07 +08:00
|
|
|
- name: deploy
|
|
|
|
if: repo = pytest-dev/pytest AND tag IS present
|
2015-06-24 23:34:09 +08:00
|
|
|
python:
|
2017-08-15 06:28:54 +08:00
|
|
|
- '3.6'
|
2017-08-15 06:19:20 +08:00
|
|
|
install:
|
|
|
|
- pip install --upgrade --pre tox
|
2015-06-16 06:40:49 +08:00
|
|
|
env:
|
|
|
|
matrix:
|
2016-01-31 06:48:15 +08:00
|
|
|
# note: please use "tox --listenvs" to populate the build matrix below
|
2018-05-24 20:17:09 +08:00
|
|
|
# please remove the linting env in all cases
|
2017-02-20 01:02:35 +08:00
|
|
|
- TOXENV=py27-pexpect
|
|
|
|
- TOXENV=py27-xdist
|
|
|
|
- TOXENV=py27-trial
|
2017-06-16 09:41:13 +08:00
|
|
|
- TOXENV=py27-numpy
|
2017-09-02 05:33:30 +08:00
|
|
|
- TOXENV=py27-pluggymaster
|
2017-09-19 08:38:15 +08:00
|
|
|
- TOXENV=py36-pexpect
|
|
|
|
- TOXENV=py36-xdist
|
|
|
|
- TOXENV=py36-trial
|
|
|
|
- TOXENV=py36-numpy
|
|
|
|
- TOXENV=py36-pluggymaster
|
2017-02-20 01:02:35 +08:00
|
|
|
- TOXENV=py27-nobyte
|
|
|
|
- TOXENV=doctesting
|
2017-09-27 06:46:50 +08:00
|
|
|
- TOXENV=docs PYTEST_NO_COVERAGE=1
|
2015-07-25 07:02:12 +08:00
|
|
|
|
2018-02-10 06:59:15 +08:00
|
|
|
jobs:
|
2016-12-13 22:16:06 +08:00
|
|
|
include:
|
2017-09-27 06:46:50 +08:00
|
|
|
# Coverage tracking is slow with pypy, skip it.
|
|
|
|
- env: TOXENV=pypy PYTEST_NO_COVERAGE=1
|
2017-07-23 09:11:51 +08:00
|
|
|
python: 'pypy-5.4'
|
2017-08-15 06:28:54 +08:00
|
|
|
- env: TOXENV=py35
|
|
|
|
python: '3.5'
|
2017-09-27 06:46:50 +08:00
|
|
|
- env: TOXENV=py36-freeze PYTEST_NO_COVERAGE=1
|
2018-06-20 18:53:41 +08:00
|
|
|
python: '3.6'
|
2017-02-20 01:02:35 +08:00
|
|
|
- env: TOXENV=py37
|
2018-07-31 04:13:17 +08:00
|
|
|
python: '3.7'
|
2018-07-30 06:53:49 +08:00
|
|
|
sudo: required
|
|
|
|
dist: xenial
|
2018-08-27 22:13:43 +08:00
|
|
|
- &test-macos
|
|
|
|
language: generic
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode9.4
|
|
|
|
sudo: required
|
|
|
|
install:
|
2018-08-28 06:30:55 +08:00
|
|
|
- python -m pip install --pre tox
|
|
|
|
env: TOXENV=py27
|
2018-08-27 22:13:43 +08:00
|
|
|
- <<: *test-macos
|
|
|
|
env: TOXENV=py37
|
|
|
|
before_install:
|
|
|
|
- brew update
|
|
|
|
- brew upgrade python
|
|
|
|
- brew unlink python
|
|
|
|
- brew link python
|
2016-11-12 05:03:18 +08:00
|
|
|
|
2018-08-28 05:46:24 +08:00
|
|
|
- stage: baseline
|
|
|
|
env: TOXENV=py27
|
|
|
|
- env: TOXENV=py34
|
|
|
|
- env: TOXENV=py36
|
2017-09-27 06:46:50 +08:00
|
|
|
- env: TOXENV=linting PYTEST_NO_COVERAGE=1
|
2018-08-28 05:46:24 +08:00
|
|
|
|
2018-02-10 06:59:15 +08:00
|
|
|
- stage: deploy
|
|
|
|
python: '3.6'
|
|
|
|
env:
|
|
|
|
install: pip install -U setuptools setuptools_scm
|
|
|
|
script: skip
|
|
|
|
deploy:
|
|
|
|
provider: pypi
|
|
|
|
user: nicoddemus
|
|
|
|
distributions: sdist bdist_wheel
|
|
|
|
skip_upload_docs: true
|
|
|
|
password:
|
|
|
|
secure: xanTgTUu6XDQVqB/0bwJQXoDMnU5tkwZc5koz6mBkkqZhKdNOi2CLoC1XhiSZ+ah24l4V1E0GAqY5kBBcy9d7NVe4WNg4tD095LsHw+CRU6/HCVIFfyk2IZ+FPAlguesCcUiJSXOrlBF+Wj68wEvLoK7EoRFbJeiZ/f91Ww1sbtDlqXABWGHrmhPJL5Wva7o7+wG7JwJowqdZg1pbQExsCc7b53w4v2RBu3D6TJaTAzHiVsW+nUSI67vKI/uf+cR/OixsTfy37wlHgSwihYmrYLFls3V0bSpahCim3bCgMaFZx8S8xrdgJ++PzBCof2HeflFKvW+VCkoYzGEG4NrTWJoNz6ni4red9GdvfjGH3YCjAKS56h9x58zp2E5rpsb/kVq5/45xzV+dq6JRuhQ1nJWjBC6fSKAc/bfwnuFK3EBxNLkvBssLHvsNjj5XG++cB8DdS9wVGUqjpoK4puaXUWFqy4q3S9F86HEsKNgExtieA9qNx+pCIZVs6JCXZNjr0I5eVNzqJIyggNgJG6RyravsU35t9Zd9doL5g4Y7UKmAGTn1Sz24HQ4sMQgXdm2SyD8gEK5je4tlhUvfGtDvMSlstq71kIn9nRpFnqB6MFlbYSEAZmo8dGbCquoUc++6Rum208wcVbrzzVtGlXB/Ow9AbFMYeAGA0+N/K1e59c=
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
repo: pytest-dev/pytest
|
|
|
|
|
2017-09-27 06:46:50 +08:00
|
|
|
before_script:
|
|
|
|
- |
|
|
|
|
if [[ "$PYTEST_NO_COVERAGE" != 1 ]]; then
|
2018-08-30 02:05:31 +08:00
|
|
|
export _PYTEST_TOX_COVERAGE_RUN="env COVERAGE_FILE=$PWD/.coverage COVERAGE_PROCESS_START=$PWD/.coveragerc coverage run --source {envsitepackagesdir}/_pytest/,$PWD/testing -m"
|
2017-09-27 06:46:50 +08:00
|
|
|
export _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
|
|
|
|
fi
|
|
|
|
|
2017-02-20 01:02:35 +08:00
|
|
|
script: tox --recreate
|
2014-01-23 19:18:20 +08:00
|
|
|
|
2017-09-27 06:46:50 +08:00
|
|
|
after_success:
|
|
|
|
- |
|
|
|
|
if [[ "$PYTEST_NO_COVERAGE" != 1 ]]; then
|
|
|
|
set -e
|
|
|
|
pip install codecov
|
|
|
|
coverage combine
|
|
|
|
coverage xml
|
|
|
|
coverage report -m
|
|
|
|
codecov --required -X gcov pycov search -f coverage.xml --flags ${TOXENV//-/ }
|
|
|
|
|
|
|
|
# Coveralls does not support merged reports.
|
|
|
|
if [[ "$TOXENV" = py37 ]]; then
|
|
|
|
pip install coveralls
|
|
|
|
coveralls
|
|
|
|
fi
|
|
|
|
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
|
2018-05-27 19:01:17 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
|
|
|
- $HOME/.cache/pre-commit
|