Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit df872e4

Browse files
shacharooNurdok
authored andcommitted
Adding dist installation tests to CI (#292)
* #290 - Just checking something * #290 - WIP * #290 - Failing on purpose * #290 - WIP * #290 - WIP * #290 - WIP * #290 - Holy moly * #290 - choco? [skip ci] * #290 - WIP * #290 - WIP * #290 - WIP :( * #290 - Woohoo! * #290 - Docs
1 parent f1aa0bd commit df872e4

File tree

3 files changed

+66
-15
lines changed

3 files changed

+66
-15
lines changed

.appveyor.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
environment:
22
matrix:
3-
- TOXENV: "py27"
4-
- TOXENV: "py33"
5-
- TOXENV: "py34"
6-
- TOXENV: "py35"
7-
- TOXENV: "py36"
8-
- TOXENV: "pypy"
3+
- TOXENV: "py27-tests"
4+
- TOXENV: "py33-tests"
5+
- TOXENV: "py34-tests"
6+
- TOXENV: "py35-tests"
7+
- TOXENV: "py36-tests"
8+
- TOXENV: "pypy-tests"
9+
- TOXENV: "py27-install"
10+
- TOXENV: "py33-install"
11+
- TOXENV: "py34-install"
12+
- TOXENV: "py35-install"
13+
- TOXENV: "py36-install"
14+
- TOXENV: "pypy-install"
15+
- TOXENV: "docs"
916

1017
install:
11-
# This takes a long time, so it's done only for pypy env.
12-
- if "%TOXENV%"=="pypy" choco install python.pypy
18+
# This takes a long time, so it's done only for pypy environments.
19+
- ps: if($env:TOXENV -eq 'pypy-tests' -or $env:TOXENV -eq 'pypy-install') {
20+
choco install python.pypy;
21+
}
1322

1423
- pip install tox
1524

.travis.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,28 @@ script: tox
1010
matrix:
1111
include:
1212
- python: 2.7
13-
env: TOXENV=py27
13+
env: TOXENV=py27-tests
1414
- python: 3.3
15-
env: TOXENV=py33
15+
env: TOXENV=py33-tests
1616
- python: 3.4
17-
env: TOXENV=py34
17+
env: TOXENV=py34-tests
1818
- python: 3.5
19-
env: TOXENV=py35
19+
env: TOXENV=py35-tests
2020
- python: 3.6
21-
env: TOXENV=py36
21+
env: TOXENV=py36-tests
2222
- python: pypy
23-
env: TOXENV=pypy
23+
env: TOXENV=pypy-tests
24+
- python: 2.7
25+
env: TOXENV=py27-install
26+
- python: 3.3
27+
env: TOXENV=py33-install
28+
- python: 3.4
29+
env: TOXENV=py34-install
30+
- python: 3.5
31+
env: TOXENV=py35-install
32+
- python: 3.6
33+
env: TOXENV=py36-install
34+
- python: pypy
35+
env: TOXENV=pypy-install
2436
- python: 2.7
2537
env: TOXENV=docs

tox.ini

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# install tox" and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, py33, py34, py35, py36, pypy, docs
7+
envlist = {py27, py33, py34, py35, py36, pypy}-{tests, install}, docs
88

99
[testenv]
1010
# Make sure reading the UTF-8 from test.py works regardless of the locale used.
@@ -16,6 +16,36 @@ deps =
1616
-rrequirements/runtime.txt
1717
-rrequirements/tests.txt
1818

19+
[testenv:py27-install]
20+
skip_install = True
21+
commands =
22+
python setup.py bdist_wheel
23+
pip install --no-index --find-links=dist pydocstyle
24+
pydocstyle --help
25+
26+
# There's no way to generate sub-sections in tox.
27+
# The following sections are all references to the `py27-install`.
28+
29+
[testenv:py33-install]
30+
skip_install = {[testenv:py27-install]skip_install}
31+
commands = {[testenv:py27-install]commands}
32+
33+
[testenv:py34-install]
34+
skip_install = {[testenv:py27-install]skip_install}
35+
commands = {[testenv:py27-install]commands}
36+
37+
[testenv:py35-install]
38+
skip_install = {[testenv:py27-install]skip_install}
39+
commands = {[testenv:py27-install]commands}
40+
41+
[testenv:py36-install]
42+
skip_install = {[testenv:py27-install]skip_install}
43+
commands = {[testenv:py27-install]commands}
44+
45+
[testenv:pypy-install]
46+
skip_install = {[testenv:py27-install]skip_install}
47+
commands = {[testenv:py27-install]commands}
48+
1949
[testenv:docs]
2050
changedir=docs
2151
deps =

0 commit comments

Comments
 (0)