Skip to content

Commit 18337c1

Browse files
committed
Add circle ci config
1 parent 8fc9e9b commit 18337c1

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.circleci/config.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: 2.1
2+
3+
jobs:
4+
verify_build:
5+
working_directory: ~/repo
6+
docker:
7+
- image: circleci/python:<< parameters.python >>
8+
parameters:
9+
python:
10+
type: string
11+
steps:
12+
- checkout
13+
- restore_cache:
14+
keys:
15+
- v1-dependencies-<< parameters.python >>-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
16+
# fallback to using the latest cache if no exact match is found
17+
- v1-dependencies-<< parameters.python >>--
18+
19+
- run: pip install -r requirements.txt
20+
- run: pip install -r requirements-dev.txt
21+
- run: nose2 -v
22+
- run: flake8
23+
24+
- save_cache:
25+
paths:
26+
- /usr/local/lib/python<<parameters.python>>/site-packages
27+
key: v1-dependencies-<< parameters.python >>-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
28+
29+
workflows:
30+
python-v2.7:
31+
jobs:
32+
- verify_build:
33+
python: "2.7"
34+
35+
python-v3.6:
36+
jobs:
37+
- verify_build:
38+
python: "3.6"
39+
40+
python-v3.7:
41+
jobs:
42+
- verify_build:
43+
python: "3.7"

0 commit comments

Comments
 (0)