@@ -6,7 +6,7 @@ defaults:
6
6
jobs :
7
7
build :
8
8
docker :
9
- - image : circleci/python:2.7.15-stretch
9
+ - image : circleci/python:2.7
10
10
steps :
11
11
- checkout
12
12
- run : pip install --user .
23
23
24
24
coverage :
25
25
docker :
26
- - image : circleci/python:2.7.15-stretch
26
+ - image : circleci/python:2.7
27
27
steps :
28
28
- checkout
29
29
- attach_workspace : { at: . }
@@ -36,36 +36,38 @@ jobs:
36
36
37
37
snyk :
38
38
docker :
39
- - image : circleci/python:2.7.15-stretch
39
+ - image : circleci/python:3.8
40
40
steps :
41
41
- checkout
42
42
- attach_workspace : { at: . }
43
- - run : python setup.py egg_info
44
- - run : cp analytics_python.egg-info/requires.txt requirements.txt
45
- - run : pip install --user -r requirements.txt
43
+ - run : pip install dephell
44
+ - run : dephell deps convert --from=setup.py --to=requirements.txt
46
45
- run : curl -sL https://raw.githubusercontent.com/segmentio/snyk_helpers/master/initialization/snyk.sh | sh
47
46
48
- test_27 :
47
+ test_27 : &test
49
48
docker :
50
- - image : circleci/python:2.7.15-stretch
49
+ - image : circleci/python:2.7
51
50
steps :
52
51
- checkout
53
- - run : pip install --user .
54
- - run : sudo pip install coverage pylint==1.9.3 flake8 mock==3.0.5
52
+ - run : pip install --user .[test]
55
53
- run :
56
54
name : Linting with Flake8
57
55
command : |
58
56
git diff origin/master..HEAD analytics | flake8 --diff --max-complexity=10 analytics
59
57
- run : make test
60
58
- run : make e2e_test
61
59
62
- test_34 : &test_34
60
+ test_34 :
63
61
docker :
64
- - image : circleci/python:3.4.8-jessie-node
62
+ - image : circleci/python:3.4
65
63
steps :
66
64
- checkout
67
- - run : pip install --user .
65
+ - run : pip install --user .[test]
66
+
67
+ # The circleci/python:3.4 image doesn't set PATH correctly, so we need to
68
+ # install these by hand with sudo
68
69
- run : sudo pip install coverage pylint==1.9.3 flake8 mock==3.0.5
70
+
69
71
- run :
70
72
name : Linting with Flake8
71
73
command : |
@@ -74,28 +76,28 @@ jobs:
74
76
- run : make e2e_test
75
77
76
78
test_35 :
77
- << : *test_34
79
+ << : *test
78
80
docker :
79
- - image : circleci/python:3.5.5-jessie
81
+ - image : circleci/python:3.5
80
82
81
83
test_36 :
82
- << : *test_34
84
+ << : *test
83
85
docker :
84
- - image : circleci/python:3.6.5-jessie
86
+ - image : circleci/python:3.6
85
87
86
88
test_37 :
87
- << : *test_34
89
+ << : *test
88
90
docker :
89
- - image : circleci/python:3.7-stretch
91
+ - image : circleci/python:3.7
90
92
91
93
test_38 :
92
- << : *test_34
94
+ << : *test
93
95
docker :
94
- - image : circleci/python:3.8-buster
96
+ - image : circleci/python:3.8
95
97
96
98
publish :
97
99
docker :
98
- - image : circleci/python:3.6.5-jessie
100
+ - image : circleci/python:3.6
99
101
steps :
100
102
- checkout
101
103
- run : sudo pip install twine
0 commit comments