2019-03-18 19:06:45 +00:00
|
|
|
# Python CircleCI 2.0 configuration file
|
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.6
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
# Download and cache dependencies
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- v1-dependencies-{{ checksum "requirements.txt" }}
|
|
|
|
# fallback to using the latest cache if no exact match is found
|
|
|
|
- v1-dependencies-
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: install dependencies
|
|
|
|
command: |
|
|
|
|
python3 -m venv venv
|
|
|
|
. venv/bin/activate
|
|
|
|
pip install -r requirements.txt
|
|
|
|
- run:
|
|
|
|
name: build phase0 spec
|
|
|
|
command: make build/phase0
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ./venv
|
|
|
|
key: v1-dependencies-{{ checksum "requirements.txt" }}
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: run tests
|
|
|
|
command: |
|
|
|
|
. venv/bin/activate
|
|
|
|
pytest tests
|
|
|
|
|
|
|
|
- store_artifacts:
|
|
|
|
path: test-reports
|
2019-03-18 20:14:26 +00:00
|
|
|
destination: test-reports
|