Skip to content

Commit

Permalink
Merge pull request #5 from freedomofpress/circleci
Browse files Browse the repository at this point in the history
Adds a circleci config
  • Loading branch information
kushaldas authored Aug 9, 2018
2 parents 1f574fc + c14c9a0 commit 916e8a3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2
jobs:
build:
working_directory: ~/sdclientapi
docker:
- image: circleci/python:3.5.3
environment:
PIPENV_VENV_IN_PROJECT: true
steps:
- checkout
- run: sudo chown -R circleci:circleci /usr/local/bin
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.5/site-packages
- restore_cache:
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
- run:
command: |
sudo pip install pipenv
pipenv install -d
- save_cache:
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
paths:
- ".venv"
- "/usr/local/bin"
- "/usr/local/lib/python3.5/site-packages"
- run:
command: |
pipenv run python -m unittest discover -v tests/
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
destination: tr1

0 comments on commit 916e8a3

Please sign in to comment.