-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathcircle.yml
More file actions
56 lines (52 loc) · 2.67 KB
/
circle.yml
File metadata and controls
56 lines (52 loc) · 2.67 KB
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
# https://circleci.com/gh/spyder-ide/spyder-unittest
# This script installs spyder from the current 3.x branch on github
machine:
environment:
# Used by qthelpers to close widgets after a defined time
TEST_CI: "True"
TEST_CI_APP: "True"
# Python versions to tests (Maximum of 4 different versions)
PY_VERSIONS: "3.6 3.5 2.7"
# For Coveralls
COVERALLS_REPO_TOKEN: c5Qt1n27dLFCAIESYVkuCmVpUU8doney1
# Environment variables used by astropy helpers
TRAVIS_OS_NAME: "linux"
CONDA_DEPENDENCIES: "lxml mock nose pytest"
PIP_DEPENDENCIES: "coveralls pytest-qt"
dependencies:
override:
# First convert PY_VERSIONS to an array and then select the python version based on the CIRCLE_NODE_INDEX
- export PY_VERSIONS=($PY_VERSIONS) &&
export TRAVIS_PYTHON_VERSION=${PY_VERSIONS[$CIRCLE_NODE_INDEX]} &&
echo -e "PYTHON = $TRAVIS_PYTHON_VERSION \n============" &&
git clone git://github.com/astropy/ci-helpers.git &&
source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh &&
export PATH="$HOME/miniconda/bin:$PATH" &&
source activate test &&
conda install -q -c spyder-ide pytest-cov &&
conda install -q spyder &&
conda remove -y spyder &&
mkdir spyder-source &&
cd spyder-source &&
wget -q https://github.com/spyder-ide/spyder/archive/3.x.zip &&
unzip -q 3.x.zip &&
cd spyder-3.x &&
python setup.py install &&
cd ../.. &&
python setup.py develop;
test:
override:
# Check PyQt5
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && export PYTEST_QT_API="pyqt5" && conda install -q qt=5.* pyqt=5.* && py.test spyder_unittest --cov=spyder_unittest: # note the colon
parallel: true
# Check PySide2
# - export PATH="$HOME/miniconda/bin:$PATH" && source activate test && export PYTEST_QT_API="pyside2" && conda install -q qt=5.* pyside2 && py.test spyder_unittest --cov=spyder_unittest: # note the colon
# parallel: true
# Check PyQt4 (but not on Python 3.6)
- if [ "$CIRCLE_NODE_INDEX" != "0" ]; then export PATH="$HOME/miniconda/bin:$PATH" && source activate test && export PYTEST_QT_API="pyqt4v2" && conda install -q qt=4.* pyqt=4.* && py.test spyder_unittest --cov=spyder_unittest; fi: # note the colon
parallel: true
# Check Pyside (but only on Python 2.7)
- if [ "$CIRCLE_NODE_INDEX" = "2" ]; then export PATH="$HOME/miniconda/bin:$PATH" && source activate test && export PYTEST_QT_API="pyside" && conda install -q qt=4.* pyside && py.test spyder_unittest --cov=spyder_unittest; fi: # note the colon
parallel: true
post:
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && coveralls