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
/
circle.yml
43 lines (41 loc) · 1.96 KB
/
circle.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
# https://circleci.com/gh/spyder-ide/conda-manager
machine:
environment:
# Used by qthelpers to close widgets after a defined time
TEST_CI: "True"
# Python versions to tests (Maximum of 4 different versions)
PY_VERSIONS: "3.5 3.4 2.7"
# Environment variables used by astropy helpers
TRAVIS_OS_NAME: "linux"
CONDA_DEPENDENCIES: >
anaconda-client pillow pyqt pyyaml qtawesome qtpy requests
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 ciocheck -c conda-forge &&
python setup.py develop;
test:
override:
# Check style
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && ciocheck conda_manager: # note the colon
parallel: true
# Check PyQt5
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install qt=5.* pyqt=5.* && conda-manager: # note the colon
parallel: true
# Check PySide2
# - export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install qt=5.* pyside2 && conda-manager: # note the colon
# parallel: true
# Check PyQt4
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install qt=4.* pyqt=4.* && conda-manager: # note the colon
parallel: true
# Check Pyside
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install qt=4.* pyside && conda-manager; fi: # note the colon
parallel: true