forked from anaconda/anaconda-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
33 lines (30 loc) · 1.38 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
# https://circleci.com/gh/Anaconda-Platform/anaconda-client/
machine:
environment:
# Used by test scripts
PYTHON_TEST: "$HOME/miniconda/envs/test/bin/python"
PY_TEST: "$HOME/miniconda/envs/test/bin/pytest"
PIP_TEST: "$HOME/miniconda/envs/test/bin/pip"
PATH: "$HOME/miniconda/bin:$PATH" # To avoid prepending this to the commands on circle-ci
# Python versions to test (Maximum of 2 different versions for now)
PY_VERSIONS: "2.7 3.5 3.6 3.7"
PIP_TEST_DEPENDENCIES: "freezegun"
# Used by astropy-ci helpers
TRAVIS_OS_NAME: "linux"
CONDA_DEPENDENCIES: "pytest pytest-cov pip setuptools pytz six clyent pillow requests nbformat pyyaml anaconda-project mock python-dateutil"
dependencies:
override:
# First convert PY_VERSIONS to an array and then select the python version based on the CIRCLE_NODE_INDEX
- PY_VERSIONS=($PY_VERSIONS) &&
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 &&
"$PYTHON_TEST" setup.py develop;
- $PIP_TEST install $PIP_TEST_DEPENDENCIES;
test:
override:
- conda info --json: # note the colon
parallel: true
- "$PY_TEST binstar_client --cov=binstar_client": # note the colon
parallel: true