-
Notifications
You must be signed in to change notification settings - Fork 55
/
tox.ini
40 lines (34 loc) · 1.58 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[tox]
envlist = py{27,34}-backend{wx,qt4,undefined}
[testenv]
# To make sure we actually test the tarball and now the working directory
changedir = .tox
# We use symbolic links to provide PySide/PyQt4/Wx packages as they don't come
# with pyface's requirements
whitelist_externals=/bin/ln
# Install development requirements (does not include wx or pyside or pyqt)
deps = -rtox-requirements.txt
basepython =
py27: python2.7
py34: python3.4
# ETS_TOOLKIT for different test environments
setenv =
backendqt4: ETS_TOOLKIT=qt4
backendwx: ETS_TOOLKIT=wx
backendundefined: ETS_TOOLKIT=
# Pass environment variables that point to the wx and pyside packages, e.g.:
# export WX_PY2_PATH=/usr/local/lib/python2.7/site-package/wx
# export PYSIDE_PY3_PATH=/usr/local/lib/python2.7/site-package/PySide
# Can point PYSIDE_*_PATH to a pyqt package if necessary
passenv=WX_PY27_PATH WXPY3_PATH PYSIDE_PY2_PATH PYSIDE_PY3_PATH
# Make sympolic links to the wx/qt4 packages
# and run tests
# On Linux, you may need to use xvfb-run
commands =
{py34-backendqt4,py34-backendundefined}: ln -sf {env:PYSIDE_PY3_PATH} {envsitepackagesdir}/
{py27-backendqt4,py27-backendundefined}: ln -sf {env:PYSIDE_PY2_PATH} {envsitepackagesdir}/
{py27-backendwx}: ln -sf {env:WX_PY2_PATH} {envsitepackagesdir}/
{py34-backendwx}: ln -sf {env:WX_PY3_PATH} {envsitepackagesdir}/
{backendwx}: python -m nose.core -v pyface --exclude=qt4 --exclude=qt
# default backend is qt4, so qt4 tests should run with undefined ETS_TOOLKIT just fine
{backendqt4,backendundefined}: python -m nose.core -v pyface --exclude=wx