This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
65 lines (55 loc) · 2.03 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
# https://travis-ci.com/spyder-ide/conda-manager
# 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
branches:
only:
- master
os:
- osx
env:
global:
# Used by qthelpers to close widgets after a defined time
- TEST_CI="True"
# Environment variables used by astropy helpers
- CONDA_DEPENDENCIES="anaconda-client pillow pyyaml qtawesome qtpy requests"
- PIP_DEPENDENCIES="coveralls pytest-qt"
matrix:
# PyQt5
- TRAVIS_PYTHON_VERSION=3.5 USE_QT_API=PyQt5
- TRAVIS_PYTHON_VERSION=3.4 USE_QT_API=PyQt5
- TRAVIS_PYTHON_VERSION=2.7 USE_QT_API=PyQt5
# PySide2
# - TRAVIS_PYTHON_VERSION=3.5 USE_QT_API=PySide2
# - TRAVIS_PYTHON_VERSION=3.4 USE_QT_API=PySide2
# - TRAVIS_PYTHON_VERSION=2.7 USE_QT_API=PySide2
# PyQt4
- TRAVIS_PYTHON_VERSION=3.5 USE_QT_API=PyQt4
- TRAVIS_PYTHON_VERSION=3.4 USE_QT_API=PyQt4
- TRAVIS_PYTHON_VERSION=2.7 USE_QT_API=PyQt4
# PySide
# - TRAVIS_PYTHON_VERSION=2.7 USE_QT_API=PySide
before_install:
# Test environments for different Qt bindings
- if [[ "$USE_QT_API" == "PyQt5" ]]; then
export CONDA_DEPENDENCIES='qt=5.* pyqt=5.* '$CONDA_DEPENDENCIES;
elif [[ "$USE_QT_API" == "PySide2" ]]; then
export CONDA_DEPENDENCIES='qt=5.* pyside2 '$CONDA_DEPENDENCIES;
elif [[ "$USE_QT_API" == "PyQt4" ]]; then
export CONDA_DEPENDENCIES='qt=4.* pyqt=4.* '$CONDA_DEPENDENCIES;
elif [[ "$USE_QT_API" == "PySide" ]]; then
export CONDA_DEPENDENCIES='qt=4.* pyside '$CONDA_DEPENDENCIES;
fi
install:
# Use Astropy ci helpers for initial setup
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
- $CONDA_INSTALL ciocheck -c conda-forge
- python setup.py develop
script:
- ciocheck conda_manager
- conda-manager
after_success:
- coveralls