forked from spyder-ide/qtpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (37 loc) · 1.2 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
# We set the language to c because python isn't supported on the MacOS X nodes
# on Travis. However, the language ends up being irrelevant anyway, since we
# install Python ourselves using conda.
language: c
sudo: false
os:
- linux
- osx
env:
global:
- SETUP_XVFB=True
- CONDA_DEPENDENCIES='pytest'
matrix:
- PYTHON_VERSION=2.7 USE_QT_API=PyQt5
- PYTHON_VERSION=2.7 USE_QT_API=PyQt4
- PYTHON_VERSION=2.7 USE_QT_API=PySide
- PYTHON_VERSION=3.4 USE_QT_API=PyQt4
- PYTHON_VERSION=3.5 USE_QT_API=PyQt4
- PYTHON_VERSION=3.5 USE_QT_API=PyQt5
before_install:
# Test environments for different Qt bindings
- if [[ "$USE_QT_API" == "PyQt5" ]]; then
export CONDA_DEPENDENCIES='qt5 pyqt5 '$CONDA_DEPENDENCIES;
export CONDA_CHANNELS='spyder-ide';
elif [[ "$USE_QT_API" == "PyQt4" ]]; then
export CONDA_DEPENDENCIES='qt pyqt '$CONDA_DEPENDENCIES;
elif [[ "$USE_QT_API" == "PySide" ]]; then
export CONDA_DEPENDENCIES='qt pyside '$CONDA_DEPENDENCIES;
fi
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
- python setup.py install
before_script:
- cd tests
script:
- py.test