File tree Expand file tree Collapse file tree 1 file changed +36
-4
lines changed Expand file tree Collapse file tree 1 file changed +36
-4
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
jobs :
3
- build :
3
+ python_2 :
4
4
docker :
5
5
- image : circleci/python:2.7-jessie
6
6
steps :
@@ -10,18 +10,50 @@ jobs:
10
10
sudo chown -R circleci:circleci /usr/local/bin
11
11
sudo chown -R circleci:circleci /usr/local/lib/python2.7/site-packages
12
12
- restore_cache :
13
- key : deps1 -{{ .Branch }}-{{ checksum "requirements.txt" }}
13
+ key : deps2 -{{ .Branch }}-{{ checksum "requirements.txt" }}
14
14
- run :
15
15
command : |
16
16
pip install -r requirements.txt
17
17
pip install codecov
18
18
- save_cache :
19
- key : deps1 -{{ .Branch }}-{{ checksum "requirements.txt" }}
19
+ key : deps2 -{{ .Branch }}-{{ checksum "requirements.txt" }}
20
20
paths :
21
21
- " .venv"
22
22
- " /usr/local/bin"
23
23
- " /usr/local/lib/python2.7/site-packages"
24
24
- run : coverage run --include=auth0/v3/*.py --omit=auth0/v3/test/*.py -m unittest discover
25
25
- run :
26
26
when : on_success
27
- command : bash <(curl -s https://codecov.io/bash)
27
+ command : bash <(curl -s https://codecov.io/bash)
28
+ python_3 :
29
+ docker :
30
+ - image : circleci/python:3.6-jessie
31
+ steps :
32
+ - checkout
33
+ - run :
34
+ command : |
35
+ sudo chown -R circleci:circleci /usr/local/bin
36
+ sudo chown -R circleci:circleci /usr/local/lib/python3.6/site-packages
37
+ - restore_cache :
38
+ key : deps3-{{ .Branch }}-{{ checksum "requirements.txt" }}
39
+ - run :
40
+ command : |
41
+ pip install -r requirements.txt
42
+ pip install codecov
43
+ - save_cache :
44
+ key : deps3-{{ .Branch }}-{{ checksum "requirements.txt" }}
45
+ paths :
46
+ - " .venv"
47
+ - " /usr/local/bin"
48
+ - " /usr/local/lib/python3.6/site-packages"
49
+ - run : coverage run --include=auth0/v3/*.py --omit=auth0/v3/test/*.py -m unittest discover
50
+ - run :
51
+ when : on_success
52
+ command : bash <(curl -s https://codecov.io/bash)
53
+
54
+ workflows :
55
+ version : 2
56
+ build :
57
+ jobs :
58
+ - python_2
59
+ - python_3
You can’t perform that action at this time.
0 commit comments