-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcircle.yml
45 lines (43 loc) · 1.54 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
44
45
# https://circleci.com/gh/ContinuumIO/ciocheck
machine:
environment:
# Used by coveralls
COVERALLS_REPO_TOKEN: "66ZaKL2l7tzcKQvDskjRhkVc6XJyQQ4SV"
# 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_CHANNELS: "conda-forge"
CONDA_DEPENDENCIES: >
autopep8>=1.2
coverage>=4.2
flake8>=3.0
isort>=4.2
pydocstyle>=1.1
pylint>=1.6
pytest>=3.0
pytest-cov>=2.4
pytest-json>=0.4
pytest-xdist>=1.15
six>=1.10
yapf>=0.12
PIP_DEPENDENCIES: "coveralls"
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 &&
python setup.py develop;
test:
override:
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && ciocheck ciocheck: # note the colon
parallel: true
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && coveralls: # note the colon
parallel: true