@@ -29,7 +29,7 @@ executors:
2929
3030
3131commands :
32- run_unittest :
32+ run_unittests_py27 :
3333 steps :
3434 - checkout
3535 - run :
@@ -44,12 +44,14 @@ commands:
4444
4545 check_py3_compat :
4646 steps :
47+ - checkout
4748 - run :
4849 name : install futurize
4950 command : pip install future --user
5051 - run :
51- name : remove compat module
52- command : rm openstack_sdk/_compat.py
52+ name : remove python3 incompatible modules
53+ command : |
54+ rm openstack_plugin_common/_compat.py
5355 - run :
5456 name : find python3-incompatible code
5557 command : |
@@ -69,6 +71,27 @@ commands:
6971 exit 1
7072 fi
7173
74+ run_unittests_py36 :
75+ steps :
76+ - checkout
77+ - run :
78+ name : Download pip
79+ command : curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
80+ - run :
81+ name : Install pip
82+ command : sudo python get-pip.py
83+ - run :
84+ name : Install virtualenv
85+ command : pip install --user virtualenv
86+ - run :
87+ name : Init virtualenv
88+ command : virtualenv env
89+ - run :
90+ name : install tox
91+ command : pip install --user tox
92+ - run : /home/circleci/.local/bin/tox -e flake8
93+ - run : /home/circleci/.local/bin/tox -e nosetests
94+
7295 generate_py27_wagon :
7396 steps :
7497 - run :
@@ -179,17 +202,16 @@ jobs:
179202 unittests_py27 :
180203 executor : py27
181204 steps :
182- - run_unittest
205+ - run_unittests_py27
183206
184207 unittests_py36 :
185208 executor : py36
186209 steps :
187- - run_unittest
210+ - run_unittests_py36
188211
189212 py3_compat :
190213 executor : py27
191214 steps :
192- - checkout
193215 - check_py3_compat
194216
195217 wagon :
@@ -225,6 +247,8 @@ workflows:
225247 tests :
226248 jobs : &all_jobs
227249 - unittests_py27
250+ - unittests_py36
251+ - py3_compat
228252 - wagon :
229253 filters :
230254 branches :
@@ -265,18 +289,20 @@ workflows:
265289 - 2.14.18-build
266290 jobs :
267291 - unittests_py27
292+ - unittests_py36
293+ - py3_compat
268294 - wagon :
269295 filters :
270296 branches :
271- only : /(2.14.18 -build|master)/
297+ only : /(2.14.19 -build|master)/
272298 - rhel_wagon :
273299 filters :
274300 branches :
275- only : /(2.14.18 -build|master)/
301+ only : /(2.14.19 -build|master)/
276302 - integration_tests :
277303 requires :
278304 - wagon
279305 - rhel_wagon
280306 filters :
281307 branches :
282- only : /(2.14.18 -build|master)/
308+ only : /(2.14.19 -build|master)/
0 commit comments