Skip to content

Commit

Permalink
Add circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Dec 23, 2018
1 parent 7405d29 commit 9b1ad42
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.1
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "dev-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 dev-requirements.txt
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "dev-requirements.txt" }}

- run:
name: run tests
command: |
. venv/bin/activate
py.test --cov=simpervisor test_simpervisor.py

0 comments on commit 9b1ad42

Please sign in to comment.