Skip to content

Commit 5061031

Browse files
authored
Merge pull request #4859 from blueyed/tox-py27-nobyte-xdist
tox: add generic nobyte and numpy factors
2 parents df8869c + c30ab10 commit 5061031

File tree

3 files changed

+10
-35
lines changed

3 files changed

+10
-35
lines changed

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ env:
1414
matrix:
1515
- TOXENV=py27 PYTEST_COVERAGE=1
1616
# Specialized factors for py27.
17-
- TOXENV=py27-nobyte PYTEST_COVERAGE=1
18-
- TOXENV=py27-xdist PYTEST_COVERAGE=1
17+
- TOXENV=py27-nobyte-numpy-xdist PYTEST_COVERAGE=1
1918
- TOXENV=py27-pluggymaster-xdist
2019
# Specialized factors for py37.
21-
- TOXENV=py37-pexpect,py37-trial,py37-numpy
20+
- TOXENV=py37-pexpect,py37-trial
2221
- TOXENV=py37-pluggymaster-xdist
2322
- TOXENV=py37-freeze
2423

@@ -65,8 +64,8 @@ jobs:
6564
if: type = cron
6665

6766
- stage: baseline
68-
env: TOXENV=py27-pexpect,py27-trial,py27-numpy
69-
- env: TOXENV=py37-xdist
67+
env: TOXENV=py27-pexpect,py27-trial
68+
- env: TOXENV=py37-numpy-xdist
7069
- env: TOXENV=linting,docs,doctesting
7170
python: '3.7'
7271

azure-pipelines.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@ jobs:
2121
python.version: '2.7'
2222
tox.env: 'py27'
2323
PYTEST_COVERAGE: '1'
24-
py27-xdist:
24+
py27-nobyte-numpy-xdist:
2525
python.version: '2.7'
26-
tox.env: 'py27-xdist'
27-
PYTEST_COVERAGE: '1'
28-
py27-numpy/nobyte:
29-
python.version: '2.7'
30-
tox.env: 'py27-numpy,py27-nobyte'
26+
tox.env: 'py27-nobyte-numpy-xdist'
3127
PYTEST_COVERAGE: '1'
3228
py27-trial:
3329
python.version: '2.7'

tox.ini

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ envlist =
1414
pypy
1515
pypy3
1616
{py27,py37}-{pexpect,xdist,trial,numpy,pluggymaster}
17-
py27-nobyte
17+
py27-nobyte-xdist
1818
doctesting
1919
py37-freeze
2020
docs
@@ -35,12 +35,15 @@ setenv =
3535
coverage: COVERAGE_FILE={toxinidir}/.coverage
3636
coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
3737

38+
nobyte: PYTHONDONTWRITEBYTECODE=1
39+
3840
pexpect: _PYTEST_TOX_PLATFORM=linux|darwin
3941
pexpect: _PYTEST_TOX_DEFAULT_POSARGS={env:_PYTEST_TOX_DEFAULT_POSARGS:testing/test_pdb.py testing/test_terminal.py testing/test_unittest.py}
4042

4143
xdist: _PYTEST_TOX_DEFAULT_POSARGS={env:_PYTEST_TOX_DEFAULT_POSARGS:-n auto}
4244
extras = testing
4345
deps =
46+
numpy: numpy
4447
pexpect: pexpect
4548
xdist: pytest-xdist>=1.13
4649
{env:_PYTEST_TOX_EXTRA_DEP:}
@@ -61,18 +64,6 @@ basepython = python3
6164
deps = pre-commit>=1.11.0
6265
commands = pre-commit run --all-files --show-diff-on-failure
6366

64-
[testenv:py27-nobyte]
65-
extras = testing
66-
deps =
67-
{[testenv]deps}
68-
pytest-xdist>=1.13
69-
distribute = true
70-
setenv =
71-
{[testenv]setenv}
72-
PYTHONDONTWRITEBYTECODE=1
73-
commands =
74-
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n auto {posargs}
75-
7667
[testenv:py27-trial]
7768
deps =
7869
{[testenv]deps}
@@ -85,17 +76,6 @@ commands =
8576
deps = {[testenv:py27-trial]deps}
8677
commands = {[testenv:py27-trial]commands}
8778

88-
[testenv:py27-numpy]
89-
deps =
90-
{[testenv]deps}
91-
numpy
92-
commands=
93-
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/python/approx.py}
94-
95-
[testenv:py37-numpy]
96-
deps = {[testenv:py27-numpy]deps}
97-
commands = {[testenv:py27-numpy]commands}
98-
9979
[testenv:py27-pluggymaster]
10080
setenv=
10181
{[testenv]setenv}

0 commit comments

Comments
 (0)