Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |