2018-06-29 02:05:36 -07:00
|
|
|
version: 2
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
docker:
|
2018-06-29 02:18:45 -07:00
|
|
|
- image: continuumio/miniconda3:4.5.4
|
2018-06-29 02:05:36 -07:00
|
|
|
|
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
|
|
# Download and cache dependencies
|
|
|
|
|
- restore_cache:
|
|
|
|
|
keys:
|
2018-06-29 02:18:45 -07:00
|
|
|
- v1-dependencies-miniconda3-4.5.4-{{ checksum "setup.py" }}-{{ checksum "dev-requirements.txt" }}
|
|
|
|
|
- v1-dependencies-miniconda3-4.5.4-
|
2018-06-29 02:05:36 -07:00
|
|
|
|
|
|
|
|
- run:
|
|
|
|
|
name: install dependencies
|
|
|
|
|
command: |
|
|
|
|
|
pip install -r dev-requirements.txt
|
|
|
|
|
pip install -e .
|
|
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
|
paths:
|
2018-06-29 02:18:45 -07:00
|
|
|
- /opt/conda
|
2018-06-29 02:20:43 -07:00
|
|
|
key: v1-dependencies-miniconda3-4.5.4-{{ checksum "setup.py" }}-{{ checksum "dev-requirements.txt" }}
|
2018-06-29 02:05:36 -07:00
|
|
|
|
|
|
|
|
- run:
|
|
|
|
|
name: run tests
|
|
|
|
|
command: |
|
|
|
|
|
sudo venv/bin/py.test tests/
|