File tree Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
2
python :
3
- - " 2.7"
4
- - " 3.4"
5
- before_script :
6
- - " export DISPLAY=:99.0"
7
- - " sh -e /etc/init.d/xvfb start"
8
- - sleep 3
3
+ - 2.7
4
+ - 3.4
9
5
10
6
env :
11
7
- PYTEST_VERSION=2.5.2 PYTEST_QT_FORCE_PYQT=true
12
8
- PYTEST_VERSION=2.5.2 PYTEST_QT_FORCE_PYQT=false
13
9
10
+ matrix :
11
+ exclude :
12
+ - python : 3.4
13
+ env : PYTEST_VERSION=2.5.2 PYTEST_QT_FORCE_PYQT=true
14
+
14
15
install :
15
16
# PySide
16
- - if [[ $PYTEST_QT_FORCE_PYQT == 'false' ]]; then
17
- - pip install pyside
17
+ - echo $TRAVIS_PYTHON_VERSION
18
+ - if [[ "$PYTEST_QT_FORCE_PYQT" == "false" && "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
19
+ - sudo apt-get install -qq python-pyside;
20
+ - 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
22
+ - pip install pyside;
18
23
- fi
19
24
20
25
# PyQt4
21
- - if [[ $PYTEST_QT_FORCE_PYQT == 'true' ]]; then
22
- - pip install pyqt4
26
+ - if [[ "$PYTEST_QT_FORCE_PYQT" == "true" ]]; then
27
+ - sudo apt-get install -qq python-qt4
28
+ - 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
29
+ - 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
23
30
- fi
24
31
25
32
# PyTest
26
33
- pip uninstall -y pytest
27
34
- pip install pytest==$PYTEST_VERSION
28
-
35
+
36
+ before_script :
37
+ - export DISPLAY=:99.0
38
+ - sh -e /etc/init.d/xvfb start
39
+ - sleep 3
40
+
29
41
script :
30
42
- py.test
You can’t perform that action at this time.
0 commit comments