forked from spyder-ide/qtawesome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (69 loc) · 2.18 KB
/
.travis.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: python
sudo: false
env:
global:
- MINCONDA_VERSION="latest"
- MINCONDA_LINUX="Linux-x86_64"
- MINCONDA_OSX="MacOSX-x86_64"
matrix:
include:
# Linux
- python: "2.7"
env: USE_QT_API=PyQt5
os: linux
- python: "2.7"
env: USE_QT_API=PyQt4
os: linux
- python: "2.7"
env: USE_QT_API=PySide
os: linux
- python: "3.4"
env: USE_QT_API=PyQt4
os: linux
- python: "3.4"
env: USE_QT_API=PyQt5
os: linux
- python: "3.5"
env: USE_QT_API=PyQt5
os: linux
- python: "3.5"
env: USE_QT_API=PyQt4
os: linux
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
# Define the value to download
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
MINCONDA_OS=$MINCONDA_LINUX;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
MINCONDA_OS=$MINCONDA_OSX;
fi
# You may want to periodically update this, although the conda update
# conda line below will keep everything up-to-date. We do this
# conditionally because it saves us some downloading if the version is
# the same.
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget "http://repo.continuum.io/miniconda/Miniconda-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh;
else
wget "http://repo.continuum.io/miniconda/Miniconda3-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Test environments for different Qt bindings
- if [[ "$USE_QT_API" == "PyQt5" ]]; then
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION qt=5.* pyqt=5.*;
elif [[ "$USE_QT_API" == "PyQt4" ]]; then
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION qt=4.* pyqt=4.*;
elif [[ "$USE_QT_API" == "PySide" ]]; then
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION qt=4.* pyside;
fi
- source activate test-environment
- python setup.py install
script:
- python example.py