added simple ci config

This commit is contained in:
Gonçalo Valério 2019-03-16 16:29:59 +00:00
parent bff1aeba6a
commit a8d74f5d8c
1 changed files with 30 additions and 0 deletions

30
circleci/config.yml Normal file
View File

@ -0,0 +1,30 @@
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.7
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "Pipfile.lock" }}
- run:
name: install dependencies
command: |
pip install pipenv
export PIPENV_VENV_IN_PROJECT=1
pipenv install
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "Pipfile.lock" }}
- run:
name: run tests
command: |
export PIPENV_VENV_IN_PROJECT=1
pipenv run pytest