Skip to content

Commit 79147e3

Browse files
authored
Merge pull request spyder-ide#51 from spyder-ide/feature/circle-ci
PR: Add circle ci
2 parents a6750d6 + 9176acc commit 79147e3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

circle.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# https://circleci.com/gh/spyder-ide/qtpy/
2+
3+
machine:
4+
environment:
5+
# Used by test scripts
6+
TEST_CI: "True"
7+
PYTHON_TEST: "$HOME/miniconda/envs/test/bin/python"
8+
PYTEST: "$HOME/miniconda/envs/test/bin/py.test"
9+
PATH: "$HOME/miniconda/bin:$PATH" # To avoid prepending this to the commands on circle-ci
10+
# Python versions to test (Maximum of 4 different versions for now)
11+
PY_VERSIONS: "2.7 3.4 3.5"
12+
# Used by astropy-ci helpers
13+
TRAVIS_OS_NAME: "linux"
14+
CONDA_CHANNELS: "spyder-ide qttesting"
15+
CONDA_DEPENDENCIES: "pyqt pytest pytest-cov qt qtpy"
16+
PIP_DEPENDENCIES: "coveralls"
17+
18+
dependencies:
19+
override:
20+
# First convert PY_VERSIONS to an array and then select the python version based on the CIRCLE_NODE_INDEX
21+
- PY_VERSIONS=($PY_VERSIONS) &&
22+
TRAVIS_PYTHON_VERSION=${PY_VERSIONS[$CIRCLE_NODE_INDEX]} &&
23+
echo -e "PYTHON = $TRAVIS_PYTHON_VERSION \n============" &&
24+
git clone git://github.com/astropy/ci-helpers.git &&
25+
source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh &&
26+
"$PYTHON_TEST" setup.py install;
27+
28+
test:
29+
override:
30+
- conda info --json: # note the colon
31+
parallel: true
32+
- "$PYTEST tests/": # note the colon
33+
parallel: true

0 commit comments

Comments
 (0)