blob: ca1afafe46de17e03321268179e10d4676d9d054 [file] [log] [blame]
sousaedu96abfc22021-02-18 14:57:01 +01001#######################################################################################
2# Copyright ETSI Contributors and Others.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13# implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#######################################################################################
17
18[tox]
aticig562623c2022-03-31 22:03:33 +030019envlist = black, flake8, safety, cover
sousaedu96abfc22021-02-18 14:57:01 +010020
21[tox:jenkins]
22toxworkdir = /tmp/.tox
23
24[testenv]
25usedevelop = True
26basepython = python3
27setenv = VIRTUAL_ENV={envdir}
28 PYTHONDONTWRITEBYTECODE = 1
29deps = -r{toxinidir}/requirements.txt
30parallel_show_output = true
31
32
33#######################################################################################
sousaedu1077bbd2021-04-15 01:18:59 +020034[testenv:release_notes]
35deps = reno
36skip_install = true
sousaedu8849fb82022-01-25 14:11:04 +000037whitelist_externals = bash
sousaedu1077bbd2021-04-15 01:18:59 +020038commands =
39 reno new {posargs:new_feature}
sousaedu8849fb82022-01-25 14:11:04 +000040 bash -c "sed -i -e '1 e head -16 tox.ini' releasenotes/notes/{posargs:new_feature}*.yaml"
sousaedu1077bbd2021-04-15 01:18:59 +020041
42
43#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +010044[testenv:black]
45deps = black
46skip_install = true
47commands =
sousaedu89278b82021-11-19 01:01:32 +000048 black --check --diff NG-RO
49 black --check --diff RO-plugin
50 black --check --diff RO-SDN-arista_cloudvision
51 black --check --diff RO-SDN-dpb
52 black --check --diff RO-SDN-dynpac
53 black --check --diff RO-SDN-floodlight_openflow
54 black --check --diff RO-SDN-ietfl2vpn
55 black --check --diff RO-SDN-juniper_contrail
56 black --check --diff RO-SDN-odl_openflow
57 black --check --diff RO-SDN-onos_openflow
58 black --check --diff RO-SDN-onos_vpls
59 black --check --diff RO-VIM-aws
60 black --check --diff RO-VIM-azure
sousaedu89278b82021-11-19 01:01:32 +000061 black --check --diff RO-VIM-openstack
62 black --check --diff RO-VIM-openvim
63 black --check --diff RO-VIM-vmware
64 black --check --diff RO-VIM-gcp
65 black --check --diff integration-tests
sousaedu96abfc22021-02-18 14:57:01 +010066
67
68#######################################################################################
69[testenv:cover]
70deps = {[testenv]deps}
71 -r{toxinidir}/requirements-dev.txt
72 -r{toxinidir}/requirements-test.txt
73skip_install = true
sousaedu89278b82021-11-19 01:01:32 +000074whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +010075commands =
76 sh -c 'rm -f nosetests.xml'
77 coverage erase
78 # NG-RO
sousaedu89278b82021-11-19 01:01:32 +000079 nose2 -C --coverage NG-RO/osm_ng_ro -s NG-RO/osm_ng_ro
sousaedu96abfc22021-02-18 14:57:01 +010080 sh -c 'mv .coverage .coverage_ng_ro'
81 # RO-plugin
aticig562623c2022-03-31 22:03:33 +030082 # nose2 -C --coverage RO-plugin/osm_ro_plugin -s RO-plugin/osm_ro_plugin
83 # sh -c 'mv .coverage .coverage_ro_plugin'
sousaedu96abfc22021-02-18 14:57:01 +010084 # RO-SDN-arista_cloudvision
aticig562623c2022-03-31 22:03:33 +030085 # nose2 -C --coverage RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision -s RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision
86 # sh -c 'mv .coverage .coverage_rosdn_arista_cloudvision'
sousaedu96abfc22021-02-18 14:57:01 +010087 # RO-SDN-dpb
aticig562623c2022-03-31 22:03:33 +030088 # nose2 -C --coverage RO-SDN-dpb/osm_rosdn_dpb -s RO-SDN-dpb/osm_rosdn_dpb
89 # sh -c 'mv .coverage .coverage_rosdn_dpb'
sousaedu96abfc22021-02-18 14:57:01 +010090 # RO-SDN-dynpac
aticig562623c2022-03-31 22:03:33 +030091 # nose2 -C --coverage RO-SDN-dynpac/osm_rosdn_dynpac -s RO-SDN-dynpac/osm_rosdn_dynpac
92 # sh -c 'mv .coverage .coverage_rosdn_dynpac'
sousaedu96abfc22021-02-18 14:57:01 +010093 # RO-SDN-floodlight_openflow
aticig562623c2022-03-31 22:03:33 +030094 # nose2 -C --coverage RO-SDN-floodlight_openflow/osm_rosdn_floodlightof -s RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
95 # sh -c 'mv .coverage .coverage_rosdn_floodlightof'
sousaedu96abfc22021-02-18 14:57:01 +010096 # RO-SDN-ietfl2vpn
aticig562623c2022-03-31 22:03:33 +030097 # nose2 -C --coverage RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn -s RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
98 # sh -c 'mv .coverage .coverage_rosdn_ietfl2vpn'
sousaedu96abfc22021-02-18 14:57:01 +010099 # RO-SDN-juniper_contrail
aticig562623c2022-03-31 22:03:33 +0300100 # nose2 -C --coverage RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail -s RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
101 # sh -c 'mv .coverage .coverage_rosdn_juniper_contrail'
sousaedu96abfc22021-02-18 14:57:01 +0100102 # RO-SDN-odl_openflow
aticig562623c2022-03-31 22:03:33 +0300103 # nose2 -C --coverage RO-SDN-odl_openflow/osm_rosdn_odlof -s RO-SDN-odl_openflow/osm_rosdn_odlof
104 # sh -c 'mv .coverage .coverage_rosdn_odlof'
sousaedu96abfc22021-02-18 14:57:01 +0100105 # RO-SDN-onos_openflow
aticig562623c2022-03-31 22:03:33 +0300106 # nose2 -C --coverage RO-SDN-onos_openflow/osm_rosdn_onosof -s RO-SDN-onos_openflow/osm_rosdn_onosof
107 # sh -c 'mv .coverage .coverage_rosdn_onosof'
sousaedu96abfc22021-02-18 14:57:01 +0100108 # RO-SDN-onos_vpls
aticig562623c2022-03-31 22:03:33 +0300109 # nose2 -C --coverage RO-SDN-onos_vpls/osm_rosdn_onos_vpls -s RO-SDN-onos_vpls/osm_rosdn_onos_vpls
110 # sh -c 'mv .coverage .coverage_rosdn_onos_vpls'
sousaedu96abfc22021-02-18 14:57:01 +0100111 # RO-VIM-aws
aticig562623c2022-03-31 22:03:33 +0300112 # nose2 -C --coverage RO-VIM-aws/osm_rovim_aws -s RO-VIM-aws/osm_rovim_aws
113 # sh -c 'mv .coverage .coverage_rovim_aws'
sousaedu96abfc22021-02-18 14:57:01 +0100114 # RO-VIM-azure
aticig562623c2022-03-31 22:03:33 +0300115 # nose2 -C --coverage RO-VIM-azure/osm_rovim_azure -s RO-VIM-azure/osm_rovim_azure
116 # sh -c 'mv .coverage .coverage_rovim_azure'
sousaedu96abfc22021-02-18 14:57:01 +0100117 # RO-VIM-openstack
aticig562623c2022-03-31 22:03:33 +0300118 nose2 -C --coverage RO-VIM-openstack/osm_rovim_openstack -s RO-VIM-openstack/osm_rovim_openstack
119 sh -c 'mv .coverage .coverage_rovim_openstack'
sousaedu96abfc22021-02-18 14:57:01 +0100120 # RO-VIM-openvim
aticig562623c2022-03-31 22:03:33 +0300121 # nose2 -C --coverage RO-VIM-openvim/osm_rovim_openvim -s RO-VIM-openvim/osm_rovim_openvim
122 # sh -c 'mv .coverage .coverage_rovim_openvim'
sousaedu96abfc22021-02-18 14:57:01 +0100123 # RO-VIM-vmware
sousaedu89278b82021-11-19 01:01:32 +0000124 # nose2 -C --coverage RO-VIM-vmware/osm_rovim_vmware -s RO-VIM-vmware/osm_rovim_vmware
125 # sh -c 'mv .coverage .coverage_rovim_vmware'
gallardo34aa3a92021-10-08 11:50:00 +0000126 # RO-VIM-gcp
aticig562623c2022-03-31 22:03:33 +0300127 # nose2 -C --coverage RO-VIM-gcp/osm_rovim_gcp -s RO-VIM-gcp/osm_rovim_gcp
128 # sh -c 'mv .coverage .coverage_rovim_gcp'
sousaedu96abfc22021-02-18 14:57:01 +0100129 # Combine results and generate reports
aticig562623c2022-03-31 22:03:33 +0300130 # coverage combine .coverage_ng_ro .coverage_ro_plugin .coverage_rosdn_arista_cloudvision .coverage_rosdn_dpb .coverage_rosdn_dynpac .coverage_rosdn_floodlightof .coverage_rosdn_ietfl2vpn .coverage_rosdn_juniper_contrail .coverage_rosdn_odlof .coverage_rosdn_onos_vpls .coverage_rosdn_onosof .coverage_rovim_aws .coverage_rovim_azure .coverage_rovim_openvim .coverage_rovim_gcp # .coverage_rovim_openstack .coverage_rovim_vmware
131 coverage combine .coverage_ng_ro .coverage_rovim_openstack
sousaedu96abfc22021-02-18 14:57:01 +0100132 coverage report --omit='*tests*'
133 coverage html -d ./cover --omit='*tests*'
134 coverage xml -o coverage.xml --omit='*tests*'
sousaedu96abfc22021-02-18 14:57:01 +0100135
136
137#######################################################################################
138[testenv:flake8]
sousaedu049cbb12022-01-05 11:39:35 +0000139deps =
140 flake8
141 flake8-import-order
sousaedu96abfc22021-02-18 14:57:01 +0100142skip_install = true
143commands =
sousaedu686720b2021-11-24 02:16:11 +0000144 flake8 NG-RO/osm_ng_ro/ NG-RO/setup.py
sousaedu049cbb12022-01-05 11:39:35 +0000145 flake8 RO-plugin/osm_ro_plugin/ RO-plugin/setup.py
146 flake8 RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision/ RO-SDN-arista_cloudvision/setup.py
147 flake8 RO-SDN-dpb/osm_rosdn_dpb/ RO-SDN-dpb/setup.py
148 flake8 RO-SDN-dynpac/osm_rosdn_dynpac/ RO-SDN-dynpac/setup.py
149 flake8 RO-SDN-floodlight_openflow/osm_rosdn_floodlightof/ RO-SDN-floodlight_openflow/setup.py
150 flake8 RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn/ RO-SDN-ietfl2vpn/setup.py
151 flake8 RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/ RO-SDN-juniper_contrail/setup.py
152 flake8 RO-SDN-odl_openflow/osm_rosdn_odlof/ RO-SDN-odl_openflow/setup.py
153 flake8 RO-SDN-onos_openflow/osm_rosdn_onosof/ RO-SDN-onos_openflow/setup.py
154 flake8 RO-SDN-onos_vpls/osm_rosdn_onos_vpls/ RO-SDN-onos_vpls/setup.py
155 flake8 RO-VIM-aws/osm_rovim_aws/ RO-VIM-aws/setup.py
156 flake8 RO-VIM-azure/osm_rovim_azure/ RO-VIM-azure/setup.py
157 flake8 RO-VIM-openstack/osm_rovim_openstack/ RO-VIM-openstack/setup.py
158 flake8 RO-VIM-openvim/osm_rovim_openvim/ RO-VIM-openvim/setup.py
159 flake8 RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py RO-VIM-vmware/osm_rovim_vmware/tests/test_vimconn_vmware.py RO-VIM-vmware/setup.py
160 flake8 RO-VIM-gcp/osm_rovim_gcp/ RO-VIM-gcp/setup.py
161 flake8 integration-tests/
sousaedu96abfc22021-02-18 14:57:01 +0100162
163
164#######################################################################################
165[testenv:pylint]
166deps = {[testenv]deps}
167 -r{toxinidir}/requirements-dev.txt
168 -r{toxinidir}/requirements-test.txt
169 pylint
170skip_install = true
171commands =
172 - pylint -E NG-RO/osm_ng_ro
173 - pylint -E RO-plugin/osm_ro_plugin
174 - pylint -E RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision
175 - pylint -E RO-SDN-dpb/osm_rosdn_dpb
176 - pylint -E RO-SDN-dynpac/osm_rosdn_dynpac
177 - pylint -E RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
178 - pylint -E RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
179 - pylint -E RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
180 - pylint -E RO-SDN-odl_openflow/osm_rosdn_odlof
181 - pylint -E RO-SDN-onos_openflow/osm_rosdn_onosof
182 - pylint -E RO-SDN-onos_vpls/osm_rosdn_onos_vpls
183 - pylint -E RO-VIM-aws/osm_rovim_aws
184 - pylint -E RO-VIM-azure/osm_rovim_azure
sousaedu96abfc22021-02-18 14:57:01 +0100185 - pylint -E RO-VIM-openstack/osm_rovim_openstack
186 - pylint -E RO-VIM-openvim/osm_rovim_openvim
187 - pylint -E RO-VIM-vmware/osm_rovim_vmware
gallardo34aa3a92021-10-08 11:50:00 +0000188 - pylint -E RO-VIM-gcp/osm_rovim_gcp
sousaedu96abfc22021-02-18 14:57:01 +0100189
190
191#######################################################################################
192[testenv:safety]
193setenv =
194 LC_ALL=C.UTF-8
195 LANG=C.UTF-8
196deps = {[testenv]deps}
197 safety
198skip_install = true
199commands =
200 - safety check --full-report
201
202
203#######################################################################################
204[testenv:pip-compile]
beierlm83483932022-01-13 13:21:53 -0500205deps = pip-tools==6.4.0
sousaedubecd0832021-04-08 00:16:18 +0200206skip_install = true
beierlm83483932022-01-13 13:21:53 -0500207whitelist_externals = bash
208 [
sousaedu96abfc22021-02-18 14:57:01 +0100209commands =
beierlm83483932022-01-13 13:21:53 -0500210 - bash -c "for file in requirements*.in ; do \
211 UNSAFE="" ; \
212 if [[ $file =~ 'dist' ]] ; then UNSAFE='--allow-unsafe' ; fi ; \
213 pip-compile -rU --no-header $UNSAFE $file ;\
sousaedubecd0832021-04-08 00:16:18 +0200214 out=`echo $file | sed 's/.in/.txt/'` ; \
215 sed -i -e '1 e head -16 tox.ini' $out ;\
216 done"
beierlm83483932022-01-13 13:21:53 -0500217 - bash -c "sed -i 's/.*RO-plugin/-e RO-plugin/g' requirements-test.txt"
sousaedu96abfc22021-02-18 14:57:01 +0100218
219
220#######################################################################################
221[testenv:dist_ng_ro]
222deps = {[testenv]deps}
223 -r{toxinidir}/requirements-dist.txt
224skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000225whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100226changedir = {toxinidir}/NG-RO
227commands =
228 sh -c 'rm -rf osm_ng_ro/requirements.txt deb_dist dist osm_ng_ro.egg-info osm_ng_ro*.tar.gz'
229 sh -c 'cp ../requirements.txt osm_ng_ro/requirements.txt'
230 python3 setup.py --command-packages=stdeb.command sdist_dsc
231 sh -c 'cd deb_dist/osm-ng-ro*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000232
sousaedu96abfc22021-02-18 14:57:01 +0100233
234#######################################################################################
235[testenv:dist_ro_plugin]
236deps = {[testenv]deps}
237 -r{toxinidir}/requirements-dist.txt
238skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000239whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100240changedir = {toxinidir}/RO-plugin
241commands =
242 sh -c 'rm -rf deb_dist dist osm_ro_plugin.egg-info osm_ro_plugin*.tar.gz'
243 python3 setup.py --command-packages=stdeb.command sdist_dsc
244 sh -c 'cd deb_dist/osm-ro-plugin*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000245
sousaedu96abfc22021-02-18 14:57:01 +0100246
247#######################################################################################
248[testenv:dist_ro_sdn_arista_cloudvision]
249deps = {[testenv]deps}
250 -r{toxinidir}/requirements-dist.txt
251skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000252whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100253changedir = {toxinidir}/RO-SDN-arista_cloudvision
254commands =
255 sh -c 'rm -rf deb_dist dist osm_rosdn_arista_cloudvision.egg-info osm_rosdn_arista_cloudvision*.tar.gz'
256 python3 setup.py --command-packages=stdeb.command sdist_dsc
257 sh -c 'cd deb_dist/osm-rosdn-arista-cloudvision*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000258
sousaedu96abfc22021-02-18 14:57:01 +0100259
260#######################################################################################
261[testenv:dist_ro_sdn_dpb]
262deps = {[testenv]deps}
263 -r{toxinidir}/requirements-dist.txt
264skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000265whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100266changedir = {toxinidir}/RO-SDN-dpb
267commands =
268 sh -c 'rm -rf deb_dist dist osm_rosdn_dpb.egg-info osm_rosdn_dpb*.tar.gz'
269 python3 setup.py --command-packages=stdeb.command sdist_dsc
270 sh -c 'cd deb_dist/osm-rosdn-dpb*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000271
sousaedu96abfc22021-02-18 14:57:01 +0100272
273#######################################################################################
274[testenv:dist_ro_sdn_dynpac]
275deps = {[testenv]deps}
276 -r{toxinidir}/requirements-dist.txt
277skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000278whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100279changedir = {toxinidir}/RO-SDN-dynpac
280commands =
281 sh -c 'rm -rf deb_dist dist osm_rosdn_dynpac.egg-info osm_rosdn_dynpac*.tar.gz'
282 python3 setup.py --command-packages=stdeb.command sdist_dsc
283 sh -c 'cd deb_dist/osm-rosdn-dynpac*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000284
sousaedu96abfc22021-02-18 14:57:01 +0100285
286#######################################################################################
287[testenv:dist_ro_sdn_floodlight_of]
288deps = {[testenv]deps}
289 -r{toxinidir}/requirements-dist.txt
290skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000291whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100292changedir = {toxinidir}/RO-SDN-floodlight_openflow
293commands =
294 sh -c 'rm -rf deb_dist dist osm_rosdn_floodlightof.egg-info osm_rosdn_floodlightof*.tar.gz'
295 python3 setup.py --command-packages=stdeb.command sdist_dsc
296 sh -c 'cd deb_dist/osm-rosdn-floodlightof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000297
sousaedu96abfc22021-02-18 14:57:01 +0100298
299#######################################################################################
300[testenv:dist_ro_sdn_ietfl2vpn]
301deps = {[testenv]deps}
302 -r{toxinidir}/requirements-dist.txt
303skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000304whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100305changedir = {toxinidir}/RO-SDN-ietfl2vpn
306commands =
307 sh -c 'rm -rf deb_dist dist osm_rosdn_ietfl2vpn.egg-info osm_rosdn_ietfl2vpn*.tar.gz'
308 python3 setup.py --command-packages=stdeb.command sdist_dsc
309 sh -c 'cd deb_dist/osm-rosdn-ietfl2vpn*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000310
sousaedu96abfc22021-02-18 14:57:01 +0100311
312#######################################################################################
313[testenv:dist_ro_sdn_juniper_contrail]
314deps = {[testenv]deps}
315 -r{toxinidir}/requirements-dist.txt
316skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000317whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100318changedir = {toxinidir}/RO-SDN-juniper_contrail
319commands =
320 sh -c 'rm -rf deb_dist dist osm_rosdn_juniper_contrail.egg-info osm_rosdn_juniper_contrail*.tar.gz'
321 python3 setup.py --command-packages=stdeb.command sdist_dsc
322 sh -c 'cd deb_dist/osm-rosdn-juniper-contrail*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000323
sousaedu96abfc22021-02-18 14:57:01 +0100324
325#######################################################################################
326[testenv:dist_ro_sdn_odl_of]
327deps = {[testenv]deps}
328 -r{toxinidir}/requirements-dist.txt
329skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000330whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100331changedir = {toxinidir}/RO-SDN-odl_openflow
332commands =
333 sh -c 'rm -rf deb_dist dist osm_rosdn_odlof.egg-info osm_rosdn_odlof*.tar.gz'
334 python3 setup.py --command-packages=stdeb.command sdist_dsc
335 sh -c 'cd deb_dist/osm-rosdn-odlof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000336
sousaedu96abfc22021-02-18 14:57:01 +0100337
338#######################################################################################
339[testenv:dist_ro_sdn_onos_of]
340deps = {[testenv]deps}
341 -r{toxinidir}/requirements-dist.txt
342skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000343whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100344changedir = {toxinidir}/RO-SDN-onos_openflow
345commands =
346 sh -c 'rm -rf deb_dist dist osm_rosdn_onosof.egg-info osm_rosdn_onosof*.tar.gz'
347 python3 setup.py --command-packages=stdeb.command sdist_dsc
348 sh -c 'cd deb_dist/osm-rosdn-onosof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000349
sousaedu96abfc22021-02-18 14:57:01 +0100350
351#######################################################################################
352[testenv:dist_ro_sdn_onos_vpls]
353deps = {[testenv]deps}
354 -r{toxinidir}/requirements-dist.txt
355skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000356whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100357changedir = {toxinidir}/RO-SDN-onos_vpls
358commands =
359 sh -c 'rm -rf deb_dist dist osm_rosdn_onos_vpls.egg-info osm_rosdn_onos_vpls*.tar.gz'
360 python3 setup.py --command-packages=stdeb.command sdist_dsc
361 sh -c 'cd deb_dist/osm-rosdn-onos-vpls*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000362
sousaedu96abfc22021-02-18 14:57:01 +0100363
364#######################################################################################
365[testenv:dist_ro_vim_aws]
366deps = {[testenv]deps}
367 -r{toxinidir}/requirements-dist.txt
368skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000369whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100370changedir = {toxinidir}/RO-VIM-aws
371commands =
372 sh -c 'rm -rf deb_dist dist osm_rovim_aws.egg-info osm_rovim_aws*.tar.gz'
373 python3 setup.py --command-packages=stdeb.command sdist_dsc
374 sh -c 'cd deb_dist/osm-rovim-aws*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000375
sousaedu96abfc22021-02-18 14:57:01 +0100376
377#######################################################################################
378[testenv:dist_ro_vim_azure]
379deps = {[testenv]deps}
380 -r{toxinidir}/requirements-dist.txt
381skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000382whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100383changedir = {toxinidir}/RO-VIM-azure
384commands =
385 sh -c 'rm -rf deb_dist dist osm_rovim_azure.egg-info osm_rovim_azure*.tar.gz'
386 python3 setup.py --command-packages=stdeb.command sdist_dsc
387 sh -c 'cd deb_dist/osm-rovim-azure*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000388
sousaedu96abfc22021-02-18 14:57:01 +0100389
390#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100391[testenv:dist_ro_vim_openstack]
392deps = {[testenv]deps}
393 -r{toxinidir}/requirements-dist.txt
394skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000395whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100396changedir = {toxinidir}/RO-VIM-openstack
397commands =
398 sh -c 'rm -rf deb_dist dist osm_rovim_openstack.egg-info osm_rovim_openstack*.tar.gz'
399 python3 setup.py --command-packages=stdeb.command sdist_dsc
400 sh -c 'cd deb_dist/osm-rovim-openstack*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000401
sousaedu96abfc22021-02-18 14:57:01 +0100402
403#######################################################################################
404[testenv:dist_ro_vim_openvim]
405deps = {[testenv]deps}
406 -r{toxinidir}/requirements-dist.txt
407skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000408whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100409changedir = {toxinidir}/RO-VIM-openvim
410commands =
411 sh -c 'rm -rf deb_dist dist osm_rovim_openvim.egg-info osm_rovim_openvim*.tar.gz'
412 python3 setup.py --command-packages=stdeb.command sdist_dsc
413 sh -c 'cd deb_dist/osm-rovim-openvim*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000414
sousaedu96abfc22021-02-18 14:57:01 +0100415
416#######################################################################################
417[testenv:dist_ro_vim_vmware]
418deps = {[testenv]deps}
419 -r{toxinidir}/requirements-dist.txt
420skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000421whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100422changedir = {toxinidir}/RO-VIM-vmware
423commands =
424 sh -c 'rm -rf deb_dist dist osm_rovim_vmware.egg-info osm_rovim_vmware*.tar.gz'
425 python3 setup.py --command-packages=stdeb.command sdist_dsc
426 sh -c 'cd deb_dist/osm-rovim-vmware*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000427
sousaedu96abfc22021-02-18 14:57:01 +0100428
429#######################################################################################
gallardo34aa3a92021-10-08 11:50:00 +0000430[testenv:dist_ro_vim_gcp]
431deps = {[testenv]deps}
432 -r{toxinidir}/requirements-dist.txt
433skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000434whitelist_externals = sh
gallardo34aa3a92021-10-08 11:50:00 +0000435changedir = {toxinidir}/RO-VIM-gcp
436commands =
437 sh -c 'rm -rf deb_dist dist osm_rovim_gcp.egg-info osm_rovim_gcp*.tar.gz'
438 python3 setup.py --command-packages=stdeb.command sdist_dsc
439 sh -c 'cd deb_dist/osm-rovim-gcp*/ && dpkg-buildpackage -rfakeroot -uc -us'
gallardo34aa3a92021-10-08 11:50:00 +0000440
441
442#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100443[flake8]
444ignore =
445 W291,
446 W293,
447 W503,
448 W605,
449 E123,
450 E125,
451 E203,
452 E226,
453 E241
454exclude =
455 .git,
456 __pycache__,
457 .tox,
458max-line-length = 120
459show-source = True
460builtins = _
sousaedu049cbb12022-01-05 11:39:35 +0000461import-order-style = google