Skip to content

Commit 3e7e5ee

Browse files
committed
Using python 3.2 on travis
We have prebuilt binaries in Ubuntu 12 for 2.7 and 3.2 only; avoid testing other python versions because that would imply a full PySide or PyQt4 build, which would put large train on travis' servers
1 parent 9da7701 commit 3e7e5ee

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.travis.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,33 @@ env:
77
- PYTEST_VERSION=2.5.2 PYTEST_QT_FORCE_PYQT=true
88
- PYTEST_VERSION=2.5.2 PYTEST_QT_FORCE_PYQT=false
99

10-
matrix:
11-
exclude:
12-
- python: 3.4
13-
env: PYTEST_VERSION=2.5.2 PYTEST_QT_FORCE_PYQT=true
10+
#matrix:
11+
# exclude:
12+
# - python: 3.2
13+
# env: PYTEST_VERSION=2.5.2 PYTEST_QT_FORCE_PYQT=true
1414

1515
install:
1616
# PySide
1717
- echo $TRAVIS_PYTHON_VERSION
1818
- if [[ "$PYTEST_QT_FORCE_PYQT" == "false" && "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
1919
- sudo apt-get install -qq python-pyside;
2020
- ln -s /usr/lib/python$TRAVIS_PYTHON_VERSION/dist-packages/PySide /home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages -v;
21-
- elif [[ "$PYTEST_QT_FORCE_PYQT" == "false" && "$TRAVIS_PYTHON_VERSION" != "2.7" ]]; then
21+
- elif [[ "$PYTEST_QT_FORCE_PYQT" == "false" && "$TRAVIS_PYTHON_VERSION" == "3.2" ]]; then
2222
- sudo apt-get install -qq python3-pyside;
23-
- ls /usr/lib/python3/dist-packages/PySide
24-
- ls /home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages
2523
- ln -s /usr/lib/python3/dist-packages/PySide /home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages -v;
2624
- python -c "import PySide; print(PySide.__file__)"
2725
- fi
2826

2927
# PyQt4
30-
- if [[ "$PYTEST_QT_FORCE_PYQT" == "true" ]]; then
28+
- if [[ "$PYTEST_QT_FORCE_PYQT" == "true" && "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
3129
- sudo apt-get install -qq python-qt4
3230
- ln -s /usr/lib/python$TRAVIS_PYTHON_VERSION/dist-packages/PyQt4 /home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages/PyQt4 -v
3331
- ln -s /usr/lib/python$TRAVIS_PYTHON_VERSION/dist-packages/sip* /home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages -v
32+
- elif [[ "$PYTEST_QT_FORCE_PYQT" == "false" && "$TRAVIS_PYTHON_VERSION" == "3.2" ]]; then
33+
- sudo apt-get install -qq python3-qt4
34+
- ln -s /usr/lib/python3/dist-packages/PyQt4 /home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages/PyQt4 -v
35+
- ln -s /usr/lib/python3/dist-packages/sip* /home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages -v
36+
- python -c "import PyQt4; print(PyQt4.__file__)"
3437
- fi
3538

3639
# PyTest

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
# note that tox expects interpreters to be found at C:\PythonXY,
33
# with XY being python version ("27" or "34") for instance
4-
envlist = py27, py34
4+
envlist = py27, py32, py34
55
[testenv]
66
deps=pytest
77
pyside

0 commit comments

Comments
 (0)