Skip to content

Commit 4b32ee7

Browse files
committed
update test env matrix
re-enable windows on appveyor enable osx on travis
1 parent da0ebcb commit 4b32ee7

File tree

5 files changed

+98
-148
lines changed

5 files changed

+98
-148
lines changed

.appveyor.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
environment:
2+
global:
3+
TOXENV: py,codecov
4+
5+
matrix:
6+
- PYTHON: C:\Python36-x64
7+
- PYTHON: C:\Python27-x64
8+
- PYTHON: C:\Python36
9+
- PYTHON: C:\Python27
10+
11+
init:
12+
- SET PATH=%PYTHON%;%PATH%
13+
14+
install:
15+
- python -m pip install -U tox
16+
17+
build: false
18+
19+
test_script:
20+
- python -m tox
21+
22+
branches:
23+
only:
24+
- master
25+
- /^.*-maintenance$/
26+
27+
cache:
28+
- '%LOCALAPPDATA%\pip\Cache'

.ci/appveyor.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.ci/run_with_env.cmd

Lines changed: 0 additions & 47 deletions
This file was deleted.

.travis.yml

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,56 @@
1+
os: linux
12
sudo: false
23
language: python
3-
python:
4-
- "2.7"
5-
- "3.4"
6-
- "3.5"
7-
- "3.6"
8-
- "pypy"
94

10-
env:
11-
- TEST_EXTRA=
12-
- TEST_EXTRA=colorama
5+
matrix:
6+
include:
7+
- python: 3.6
8+
env: TOXENV=py,codecov
9+
- python: 3.5
10+
env: TOXENV=py,codecov
11+
- python: 3.4
12+
env: TOXENV=py,codecov
13+
- python: 2.7
14+
env: TOXENV=py,codecov
15+
- python: pypy3
16+
env: TOXENV=py,codecov
17+
- python: nightly
18+
env: TOXENV=py
19+
- os: osx
20+
language: generic
21+
env: TOXENV=py3,py2,codecov
22+
cache:
23+
pip: false
24+
directories:
25+
- $HOME/Library/Caches/Homebrew
26+
- $HOME/Library/Caches/pip
27+
allow_failures:
28+
- python: pypy3
29+
- python: nightly
30+
- os: osx
31+
fast_finish: true
32+
33+
before_install:
34+
- |
35+
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
36+
brew upgrade python
37+
brew install python@2
38+
export PATH="/usr/local/opt/python/libexec/bin:${PATH}"
39+
fi
1340
1441
install:
1542
- pip install tox
1643

1744
script:
18-
- |
19-
set -ex
20-
if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then
21-
TOX_PY=pypy
22-
else
23-
TOX_PY="py${TRAVIS_PYTHON_VERSION/./}"
24-
fi
25-
export TOXENV="${TOX_PY}-coverage"
26-
if [[ $TEST_EXTRA == colorama ]]; then
27-
TOXENV="$TOXENV-colorama"
28-
fi
29-
tox
30-
set +x
45+
- tox
46+
47+
cache:
48+
- pip
3149

3250
branches:
3351
only:
3452
- master
35-
- auto
36-
- /^.*-maintenance$/
53+
- /^.*-maintenance/
3754

3855
notifications:
3956
email: false
40-
41-
after_success:
42-
- pip install codecov
43-
- travis_retry codecov --env TOXENV -X fix search gcov --required --flags $TOX_PY $TEST_EXTRA

tox.ini

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,35 @@
11
[tox]
2-
envlist = py27,py34,py35,py36,pypy
3-
skip_missing_interpreters = true
2+
envlist = py{36,35,34,27,py}
43

54
[testenv]
65
passenv = LANG
7-
commands = {env:TEST_RUNNER:pytest} {posargs}
86
deps =
97
pytest
10-
colorama: colorama
11-
coverage: coverage
12-
setenv =
13-
coverage: TEST_RUNNER=coverage run -m pytest
8+
coverage
9+
colorama
10+
commands = coverage run -p -m pytest {posargs:tests}
11+
12+
[testenv:docs-html]
13+
deps = sphinx
14+
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
15+
16+
[testenv:docs-linkcheck]
17+
deps = sphinx
18+
commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs {envtmpdir}/linkcheck
19+
20+
[testenv:coverage-report]
21+
deps = coverage
22+
skip_install = true
23+
commands =
24+
coverage combine
25+
coverage report
26+
coverage html
27+
28+
[testenv:codecov]
29+
passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
30+
deps = codecov
31+
skip_install = true
32+
commands =
33+
coverage combine
34+
coverage report
35+
codecov

0 commit comments

Comments
 (0)