Skip to content

Commit 916e8a3

Browse files
authored
Merge pull request #5 from freedomofpress/circleci
Adds a circleci config
2 parents 1f574fc + c14c9a0 commit 916e8a3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.circleci/config.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/sdclientapi
5+
docker:
6+
- image: circleci/python:3.5.3
7+
environment:
8+
PIPENV_VENV_IN_PROJECT: true
9+
steps:
10+
- checkout
11+
- run: sudo chown -R circleci:circleci /usr/local/bin
12+
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.5/site-packages
13+
- restore_cache:
14+
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
15+
- run:
16+
command: |
17+
sudo pip install pipenv
18+
pipenv install -d
19+
- save_cache:
20+
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
21+
paths:
22+
- ".venv"
23+
- "/usr/local/bin"
24+
- "/usr/local/lib/python3.5/site-packages"
25+
- run:
26+
command: |
27+
pipenv run python -m unittest discover -v tests/
28+
- store_test_results:
29+
path: test-results
30+
- store_artifacts:
31+
path: test-results
32+
destination: tr1

0 commit comments

Comments
 (0)