Skip to content

Commit 40c5a9d

Browse files
authored
Merge pull request #5409 from blueyed/twisted
ci: optimize twisted/numpy related jobs
2 parents 83d1809 + 28aa38e commit 40c5a9d

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
include:
2121
# OSX tests - first (in test stage), since they are the slower ones.
2222
- os: osx
23-
# NOTE: (tests with) pexpect appear to be buggy on Travis,
24-
# at least with coverage.
25-
# Log: https://travis-ci.org/pytest-dev/pytest/jobs/500358864
2623
osx_image: xcode10.1
2724
language: generic
2825
env: TOXENV=py37-xdist PYTEST_COVERAGE=1
@@ -45,12 +42,12 @@ jobs:
4542
# - TestArgComplete (linux only)
4643
# - numpy
4744
# Empty PYTEST_ADDOPTS to run this non-verbose.
48-
- env: TOXENV=py37-lsof-numpy-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS=
45+
- env: TOXENV=py37-lsof-numpy-twisted-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS=
4946

5047
# Specialized factors for py37.
5148
# Coverage for:
5249
# - test_sys_breakpoint_interception (via pexpect).
53-
- env: TOXENV=py37-pexpect,py37-twisted PYTEST_COVERAGE=1
50+
- env: TOXENV=py37-pexpect PYTEST_COVERAGE=1
5451
- env: TOXENV=py37-pluggymaster-xdist
5552
- env: TOXENV=py37-freeze
5653

azure-pipelines.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,14 @@ jobs:
2828
tox.env: 'py36-xdist'
2929
py37:
3030
python.version: '3.7'
31-
tox.env: 'py37'
31+
tox.env: 'py37-twisted-numpy'
3232
# Coverage for:
3333
# - _py36_windowsconsoleio_workaround (with py36+)
3434
# - test_request_garbage (no xdist)
3535
PYTEST_COVERAGE: '1'
3636
py37-linting/docs/doctesting:
3737
python.version: '3.7'
3838
tox.env: 'linting,docs,doctesting'
39-
py37-twisted/numpy:
40-
python.version: '3.7'
41-
tox.env: 'py37-twisted,py37-numpy'
4239
py37-pluggymaster-xdist:
4340
python.version: '3.7'
4441
tox.env: 'py37-pluggymaster-xdist'

tox.ini

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ commands =
2323
coverage: coverage report
2424
passenv = USER USERNAME COVERAGE_* TRAVIS PYTEST_ADDOPTS
2525
setenv =
26-
_PYTEST_TOX_DEFAULT_POSARGS={env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_PEXPECT:} {env:_PYTEST_TOX_POSARGS_TWISTED:} {env:_PYTEST_TOX_POSARGS_XDIST:}
26+
_PYTEST_TOX_DEFAULT_POSARGS={env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_XDIST:}
2727

2828
# Configuration to run with coverage similar to Travis/Appveyor, e.g.
2929
# "tox -e py37-coverage".
@@ -37,9 +37,6 @@ setenv =
3737
lsof: _PYTEST_TOX_POSARGS_LSOF=--lsof
3838

3939
pexpect: _PYTEST_TOX_PLATFORM=linux|darwin
40-
pexpect: _PYTEST_TOX_POSARGS_PEXPECT=-m uses_pexpect
41-
42-
twisted: _PYTEST_TOX_POSARGS_TWISTED=testing/test_unittest.py
4340

4441
xdist: _PYTEST_TOX_POSARGS_XDIST=-n auto
4542
extras = testing

0 commit comments

Comments
 (0)