Skip to content

Commit

Permalink
Update to circle ci 2
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Aug 28, 2018
1 parent 59ad09b commit be9bb62
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 6 deletions.
79 changes: 79 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,79 @@
# https://circleci.com/gh/Anaconda-Platform/anaconda-client/

version: 2

# Reuse variables
# -----------------------------------------------------------------------------
main_test: &main_test
docker:
- image: circleci/node:6.10-browsers # Needed to run GUI tests
steps:
- checkout
- run:
name: Install dependencies
command: |
wget https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p "$HOME"/miniconda
source /home/circleci/miniconda/etc/profile.d/conda.sh
conda activate base
conda config --set always_yes yes --set changeps1 no --set auto_update_conda false
conda create -n test python=$PYTHON_VERSION
conda activate test
conda install -n test --file requirements.txt
conda install -n test anaconda-project pillow mock pytest pytest-cov
pip install freezegun
# conda update conda -c conda-canary -q --no-pin
python setup.py develop
- run:
name: Conda information
command: |
source /home/circleci/miniconda/etc/profile.d/conda.sh
conda activate test
conda info
conda config --show
conda list --show-channel-urls
- run:
name: Run lint and format checks
command: |
source /home/circleci/miniconda/etc/profile.d/conda.sh
conda activate test
# flake8 binstar_client
- run:
name: Run tests
command: |
source /home/circleci/miniconda/etc/profile.d/conda.sh
conda activate test
pytest binstar_client --cov=binstar_client
# -----------------------------------------------------------------------------
jobs:
py27:
<<: *main_test
environment:
- PYTHON_VERSION: 2.7
- CONDA_SH:

py35:
<<: *main_test
environment:
- PYTHON_VERSION: 3.5

py36:
<<: *main_test
environment:
- PYTHON_VERSION: 3.6

py37:
<<: *main_test
environment:
- PYTHON_VERSION: 3.7


workflows:
version: 2
lint-and-test:
jobs:
- py27
- py37
- py36
- py35
12 changes: 6 additions & 6 deletions requirements.txt
@@ -1,8 +1,8 @@
setuptools
pytz
six
nbformat >=4.4.0
clyent >=1.2.0
requests >=2.9.1
PyYAML >=3.12
nbformat >=4.4.0
python-dateutil >=2.6.1
pytz
PyYAML >=3.12
requests >=2.9.1
setuptools
six

0 comments on commit be9bb62

Please sign in to comment.