forked from spyder-ide/qtawesome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
32 lines (29 loc) · 1.27 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
# https://circleci.com/gh/spyder-ide/qtawesome
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: "qtpy"
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 ciocheck -c spyder-ide &&
python setup.py develop;
test:
override:
# Check style
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && ciocheck qtawesome: # note the colon
parallel: true
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install -q qt=5.* pyqt=5.* && py.test qtawesome: # note the colon
parallel: true