Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Add circle ci #51

Merged
merged 1 commit into from Aug 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
33 changes: 33 additions & 0 deletions circle.yml
@@ -0,0 +1,33 @@
# https://circleci.com/gh/spyder-ide/qtpy/

machine:
environment:
# Used by test scripts
TEST_CI: "True"
PYTHON_TEST: "$HOME/miniconda/envs/test/bin/python"
PYTEST: "$HOME/miniconda/envs/test/bin/py.test"
PATH: "$HOME/miniconda/bin:$PATH" # To avoid prepending this to the commands on circle-ci
# Python versions to test (Maximum of 4 different versions for now)
PY_VERSIONS: "2.7 3.4 3.5"
# Used by astropy-ci helpers
TRAVIS_OS_NAME: "linux"
CONDA_CHANNELS: "spyder-ide qttesting"
CONDA_DEPENDENCIES: "pyqt pytest pytest-cov qt qtpy"
PIP_DEPENDENCIES: "coveralls"

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 install;

test:
override:
- conda info --json: # note the colon
parallel: true
- "$PYTEST tests/": # note the colon
parallel: true