@@ -5,7 +5,7 @@ executors:
5
5
parameters :
6
6
image_tag :
7
7
type : string
8
- default : " python:3.7"
8
+ default : python:3.7
9
9
docker :
10
10
- image : circleci/<< parameters.image_tag >>
11
11
@@ -14,94 +14,107 @@ commands:
14
14
steps :
15
15
- checkout
16
16
- run :
17
- name : " Package Installation to Virtual Environment "
17
+ name : Installation
18
18
command : |
19
19
python setup.py sdist
20
20
PACKAGE=$(python setup.py --fullname)
21
- tar -zxvf " dist/${PACKAGE}.tar.gz"
21
+ tar -zxvf dist/${PACKAGE}.tar.gz
22
22
mv ${PACKAGE} package
23
23
virtualenv python -q
24
24
source python/bin/activate
25
25
pip install -e package --progress-bar off
26
26
pip install -r package/test-requirements.txt --progress-bar off
27
27
28
28
jobs :
29
- lint_tests :
29
+ Lint Tests :
30
30
parameters :
31
31
image_tag :
32
32
type : string
33
- default : " python:3.7"
33
+ default : python:3.7
34
34
executor :
35
35
name : python
36
36
image_tag : << parameters.image_tag >>
37
37
steps :
38
38
- installation
39
39
- run :
40
- name : " Lint Tests"
40
+ name : Lint Tests
41
41
command : |
42
42
source python/bin/activate
43
43
make -C package lint-tests --makefile ../Makefile
44
44
45
- unit_tests :
45
+ Unit Tests :
46
46
parameters :
47
47
image_tag :
48
48
type : string
49
- default : " python:3.7"
49
+ default : python:3.7
50
+ codecov :
51
+ type : boolean
52
+ default : false
50
53
executor :
51
54
name : python
52
55
image_tag : << parameters.image_tag >>
53
56
steps :
54
57
- installation
55
58
- run :
56
- name : " Unit Tests"
59
+ name : Unit Tests
57
60
command : |
58
61
source python/bin/activate
59
62
make -C package unit-tests --makefile ../Makefile
63
+ - when :
64
+ condition : << parameters.codecov >>
65
+ steps :
66
+ - run :
67
+ name : Code Coverage
68
+ command : |
69
+ source python/bin/activate
70
+ cd package
71
+ codecov
60
72
61
- entry_point_test :
73
+ Entry Point Test :
62
74
parameters :
63
75
image_tag :
64
76
type : string
65
- default : " python:3.7"
77
+ default : python:3.7
66
78
executor :
67
79
name : python
68
80
image_tag : << parameters.image_tag >>
69
81
steps :
70
82
- installation
71
83
- run :
72
- name : " Entry Point Test"
84
+ name : Entry Point Test
73
85
command : |
74
86
source python/bin/activate
75
87
make -C package entry-point-test --makefile ../Makefile
76
88
77
89
workflows :
78
90
version : 2
79
- " Integration Tests " :
91
+ Integration Tests :
80
92
jobs :
81
- - lint_tests :
82
- name : " Lint Tests - Python 3.5"
83
- image_tag : " python:3.5"
84
- - lint_tests :
85
- name : " Lint Tests - Python 3.6"
86
- image_tag : " python:3.6"
87
- - lint_tests :
88
- name : " Lint Tests - Python 3.7"
89
- image_tag : " python:3.7"
90
- - unit_tests :
91
- name : " Unit Tests - Python 3.5"
92
- image_tag : " python:3.5"
93
- - unit_tests :
94
- name : " Unit Tests - Python 3.6"
95
- image_tag : " python:3.6"
96
- - unit_tests :
97
- name : " Unit Tests - Python 3.7"
98
- image_tag : " python:3.7"
99
- - entry_point_test :
100
- name : " Entry Point Test - Python 3.5"
101
- image_tag : " python:3.5"
102
- - entry_point_test :
103
- name : " Entry Point Test - Python 3.6"
104
- image_tag : " python:3.6"
105
- - entry_point_test :
106
- name : " Entry Point Test - Python 3.7"
107
- image_tag : " python:3.7"
93
+ - Lint Tests :
94
+ name : Py35 - Lint Tests
95
+ image_tag : python:3.5
96
+ - Lint Tests :
97
+ name : Py36 - Lint Tests
98
+ image_tag : python:3.6
99
+ - Lint Tests :
100
+ name : Py37 - Lint Tests
101
+ image_tag : python:3.7
102
+ - Unit Tests :
103
+ name : Py35 - Unit Tests
104
+ image_tag : python:3.5
105
+ - Unit Tests :
106
+ name : Py36 - Unit Tests
107
+ image_tag : python:3.6
108
+ - Unit Tests :
109
+ name : Py37 - Unit Tests
110
+ image_tag : python:3.7
111
+ codecov : true
112
+ - Entry Point Test :
113
+ name : Py35 - Entry Point Test
114
+ image_tag : python:3.5
115
+ - Entry Point Test :
116
+ name : Py36 - Entry Point Test
117
+ image_tag : python:3.6
118
+ - Entry Point Test :
119
+ name : Py37 - Entry Point Test
120
+ image_tag : python:3.7
0 commit comments