Add test environments using PyQt from PyPI

Fixes #2083
This commit is contained in:
Florian Bruhin 2017-02-08 14:02:03 +01:00
parent 038a517c5a
commit ce3e24163e
3 changed files with 61 additions and 1 deletions

View File

@ -21,9 +21,24 @@ matrix:
- os: linux
env: DOCKER=ubuntu-xenial
services: docker
- os: linux
language: python
python: 3.5
env: TESTENV=py35-pyqt56
- os: linux
language: python
python: 3.5
env: TESTENV=py35-pyqt571
- os: linux
language: python
python: 3.6
env: TESTENV=py36-pyqt571
- os: osx
env: TESTENV=py36 OSX=elcapitan
osx_image: xcode7.3
- os: osx
env: TESTENV=py36-pyqt571 OSX=elcapitan
osx_image: xcode7.3
# https://github.com/qutebrowser/qutebrowser/issues/2013
# - os: osx
# env: TESTENV=py35 OSX=yosemite

View File

@ -93,7 +93,9 @@ elif [[ $TRAVIS_OS_NAME == osx ]]; then
sudo -H python get-pip.py
brew --version
brew_install python3 qt5 pyqt5
brew_install python3
[[ $TESTENV != *-pyqt* ]] && brew_install qt5 pyqt5
pip_install -r misc/requirements/requirements-tox.txt
pip --version
@ -116,6 +118,9 @@ case $TESTENV in
apt_install xvfb $pyqt_pkgs libpython3.4-dev
check_pyqt
;;
py3*-pyqt*)
apt_install xvfb libpython3.4-dev
;;
pylint|vulture)
apt_install $pyqt_pkgs libpython3.4-dev
check_pyqt

40
tox.ini
View File

@ -22,6 +22,9 @@ commands =
{envpython} scripts/link_pyqt.py --tox {envdir}
{envpython} scripts/dev/run_pytest.py {posargs:tests}
# test envs with coverage
[testenv:py36-cov]
basepython = python3.6
setenv = {[testenv]setenv}
@ -52,6 +55,43 @@ commands =
{envpython} scripts/dev/run_pytest.py --cov --cov-report xml --cov-report=html --cov-report= {posargs:tests}
{envpython} scripts/dev/check_coverage.py {posargs}
# test envs with PyQt5 from PyPI
[testenv:py35-pyqt56]
basepython = python3.5
setenv =
{[testenv]setenv}
QUTE_BDD_WEBENGINE=true
passenv = {[testenv]passenv}
deps =
{[testenv]deps}
PyQt5==5.6
commands = {envpython} scripts/dev/run_pytest.py {posargs:tests}
[testenv:py35-pyqt571]
basepython = python3.5
setenv =
{[testenv]setenv}
QUTE_BDD_WEBENGINE=true
passenv = {[testenv]passenv}
deps =
{[testenv]deps}
PyQt5==5.7.1
commands = {envpython} scripts/dev/run_pytest.py {posargs:tests}
[testenv:py36-pyqt571]
basepython = python3.6
setenv =
{[testenv]setenv}
QUTE_BDD_WEBENGINE=true
passenv = {[testenv]passenv}
deps =
{[testenv]deps}
PyQt5==5.7.1
commands = {envpython} scripts/dev/run_pytest.py {posargs:tests}
# other envs
[testenv:mkvenv]
basepython = python3
commands = {envpython} scripts/link_pyqt.py --tox {envdir}