update test env matrix
Before adoption: this commit came in with the history the project adopted, so no landing records it.
re-enable windows on appveyor enable osx on travis
authored by David Lord · committed by David Lord · parent da0ebcb · Browse files · 5 files·+98 added−148 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+98 added−148 removed
- other:+98 added−148 removed
Provenance
- Commit
4b32ee7- Tree
8365314- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
da0ebcb
5 files changed+98 added−148 removed
deleted:.ci/appveyor.yml-66 removed
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566# From https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor.yml
environment: global: # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the # /E:ON and /V:ON options are not enabled in the batch script intepreter # See: http://stackoverflow.com/a/13751649/163740 CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\.ci\\run_with_env.cmd"
matrix: - PYTHON: "C:\\Python27" PYTHON_VERSION: "2.7.x" PYTHON_ARCH: "32"
- PYTHON: "C:\\Python27-x64" PYTHON_VERSION: "2.7.x" PYTHON_ARCH: "64"
- PYTHON: "C:\\Python33" PYTHON_VERSION: "3.3.x" PYTHON_ARCH: "32"
- PYTHON: "C:\\Python33-x64" PYTHON_VERSION: "3.3.x" PYTHON_ARCH: "64"
- PYTHON: "C:\\Python34" PYTHON_VERSION: "3.4.x" PYTHON_ARCH: "32"
- PYTHON: "C:\\Python34-x64" PYTHON_VERSION: "3.4.x" PYTHON_ARCH: "64"
- PYTHON: "C:\\Python35" PYTHON_VERSION: "3.5.x" PYTHON_ARCH: "32"
- PYTHON: "C:\\Python35-x64" PYTHON_VERSION: "3.5.x" PYTHON_ARCH: "64"
- PYTHON: "C:\\Python36" PYTHON_VERSION: "3.6.x" PYTHON_ARCH: "32"
- PYTHON: "C:\\Python36-x64" PYTHON_VERSION: "3.6.x" PYTHON_ARCH: "64"
branches: only: - master
install: - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" # Check that we have the expected version and architecture for Python - "python --version" - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" # Build data files - "pip install . pytest"
build: false # Not a C# project, build stuff at the test step instead.
test_script: - "%CMD_IN_ENV% python -m pytest tests"deleted:.ci/run_with_env.cmd-47 removed
1-:: To build extensions for 64 bit Python 3, we need to configure environment2-:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of:3-:: MS Windows SDK for Windows 7 and .NET Framework 4 (SDK v7.1)4-::5-:: To build extensions for 64 bit Python 2, we need to configure environment6-:: variables to use the MSVC 2008 C++ compilers from GRMSDKX_EN_DVD.iso of:7-:: MS Windows SDK for Windows 7 and .NET Framework 3.5 (SDK v7.0)8-::9-:: 32 bit builds do not require specific environment configurations.10-::11-:: Note: this script needs to be run with the /E:ON and /V:ON flags for the12-:: cmd interpreter, at least for (SDK v7.0)13-::14-:: More details at:15-:: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows16-:: http://stackoverflow.com/a/13751649/16374017-::18-:: Author: Olivier Grisel19-:: License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/20-@ECHO OFF21-22-SET COMMAND_TO_RUN=%*23-SET WIN_SDK_ROOT=C:\Program Files\Microsoft SDKs\Windows24-25-SET MAJOR_PYTHON_VERSION="%PYTHON_VERSION:~0,1%"26-IF %MAJOR_PYTHON_VERSION% == "2" (27- SET WINDOWS_SDK_VERSION="v7.0"28-) ELSE IF %MAJOR_PYTHON_VERSION% == "3" (29- SET WINDOWS_SDK_VERSION="v7.1"30-) ELSE (31- ECHO Unsupported Python version: "%MAJOR_PYTHON_VERSION%"32- EXIT 133-)34-35-IF "%PYTHON_ARCH%"=="64" (36- ECHO Configuring Windows SDK %WINDOWS_SDK_VERSION% for Python %MAJOR_PYTHON_VERSION% on a 64 bit architecture37- SET DISTUTILS_USE_SDK=138- SET MSSdk=139- "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Setup\WindowsSdkVer.exe" -q -version:%WINDOWS_SDK_VERSION%40- "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Bin\SetEnv.cmd" /x64 /release41- ECHO Executing: %COMMAND_TO_RUN%42- call %COMMAND_TO_RUN% || EXIT 143-) ELSE (44- ECHO Using default MSVC build environment for 32 bit architecture45- ECHO Executing: %COMMAND_TO_RUN%46- call %COMMAND_TO_RUN% || EXIT 147-)added:.appveyor.yml+28 added
12345678910111213141516171819202122232425262728environment: global: TOXENV: py,codecov
matrix: - PYTHON: C:\Python36-x64 - PYTHON: C:\Python27-x64 - PYTHON: C:\Python36 - PYTHON: C:\Python27
init: - SET PATH=%PYTHON%;%PATH%
install: - python -m pip install -U tox
build: false
test_script: - python -m tox
branches: only: - master - /^.*-maintenance$/
cache: - '%LOCALAPPDATA%\pip\Cache'modified:.travis.yml+41 added-28 removed
123345678410111256789101112131415161718192021222324252627282930313233343536373839404142434418192021222324252627282930454647484950515235365354555640414243os: linuxsudo: falselanguage: pythonpython: - "2.7" - "3.4" - "3.5" - "3.6" - "pypy"
env: - TEST_EXTRA= - TEST_EXTRA=coloramamatrix: include: - python: 3.6 env: TOXENV=py,codecov - python: 3.5 env: TOXENV=py,codecov - python: 3.4 env: TOXENV=py,codecov - python: 2.7 env: TOXENV=py,codecov - python: pypy3 env: TOXENV=py,codecov - python: nightly env: TOXENV=py - os: osx language: generic env: TOXENV=py3,py2,codecov cache: pip: false directories: - $HOME/Library/Caches/Homebrew - $HOME/Library/Caches/pip allow_failures: - python: pypy3 - python: nightly - os: osx fast_finish: true
before_install: - | if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew upgrade python brew install python@2 export PATH="/usr/local/opt/python/libexec/bin:${PATH}" fi
install: - pip install tox
script: - | set -ex if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then TOX_PY=pypy else TOX_PY="py${TRAVIS_PYTHON_VERSION/./}" fi export TOXENV="${TOX_PY}-coverage" if [[ $TEST_EXTRA == colorama ]]; then TOXENV="$TOXENV-colorama" fi tox set +x - tox
cache: - pip
branches: only: - master - auto - /^.*-maintenance$/ - /^.*-maintenance/
notifications: email: false
after_success: - pip install codecov - travis_retry codecov --env TOXENV -X fix search gcov --required --flags $TOX_PY $TEST_EXTRAmodified:tox.ini+29 added-7 removed
1 [tox]2-envlist = py27,py34,py35,py36,pypy3-skip_missing_interpreters = true2+envlist = py{36,35,34,27,py}3 4 [testenv]5 passenv = LANG7-commands = {env:TEST_RUNNER:pytest} {posargs}6 deps =7 pytest10- colorama: colorama11- coverage: coverage12-setenv =13- coverage: TEST_RUNNER=coverage run -m pytest8+ coverage9+ colorama10+commands = coverage run -p -m pytest {posargs:tests}11+12+[testenv:docs-html]13+deps = sphinx14+commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html15+16+[testenv:docs-linkcheck]17+deps = sphinx18+commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs {envtmpdir}/linkcheck19+20+[testenv:coverage-report]21+deps = coverage22+skip_install = true23+commands =24+ coverage combine25+ coverage report26+ coverage html27+28+[testenv:codecov]29+passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*30+deps = codecov31+skip_install = true32+commands =33+ coverage combine34+ coverage report35+ codecov