blob: 1651e4329cee5acc1f71b38bb2582d0d6b66c276 [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
Gulsum Aticif694e822023-03-29 22:04:38 +030023setenv = XDG_CACHE_HOME=/tmp/.cache
sousaedu96abfc22021-02-18 14:57:01 +010024
25[testenv]
26usedevelop = True
27basepython = python3
28setenv = VIRTUAL_ENV={envdir}
29 PYTHONDONTWRITEBYTECODE = 1
30deps = -r{toxinidir}/requirements.txt
31parallel_show_output = true
32
33
34#######################################################################################
sousaedu1077bbd2021-04-15 01:18:59 +020035[testenv:release_notes]
36deps = reno
37skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +020038allowlist_externals = bash
sousaedu1077bbd2021-04-15 01:18:59 +020039commands =
40 reno new {posargs:new_feature}
sousaedu8849fb82022-01-25 14:11:04 +000041 bash -c "sed -i -e '1 e head -16 tox.ini' releasenotes/notes/{posargs:new_feature}*.yaml"
sousaedu1077bbd2021-04-15 01:18:59 +020042
43
44#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +010045[testenv:black]
garciadeblas8214dac2024-01-29 18:48:18 +010046deps = black==23.12.1
sousaedu96abfc22021-02-18 14:57:01 +010047skip_install = true
48commands =
sousaedu89278b82021-11-19 01:01:32 +000049 black --check --diff NG-RO
50 black --check --diff RO-plugin
51 black --check --diff RO-SDN-arista_cloudvision
52 black --check --diff RO-SDN-dpb
53 black --check --diff RO-SDN-dynpac
54 black --check --diff RO-SDN-floodlight_openflow
55 black --check --diff RO-SDN-ietfl2vpn
56 black --check --diff RO-SDN-juniper_contrail
57 black --check --diff RO-SDN-odl_openflow
58 black --check --diff RO-SDN-onos_openflow
59 black --check --diff RO-SDN-onos_vpls
60 black --check --diff RO-VIM-aws
61 black --check --diff RO-VIM-azure
sousaedu89278b82021-11-19 01:01:32 +000062 black --check --diff RO-VIM-openstack
63 black --check --diff RO-VIM-openvim
64 black --check --diff RO-VIM-vmware
65 black --check --diff RO-VIM-gcp
66 black --check --diff integration-tests
sousaedu96abfc22021-02-18 14:57:01 +010067
68
69#######################################################################################
70[testenv:cover]
71deps = {[testenv]deps}
72 -r{toxinidir}/requirements-dev.txt
73 -r{toxinidir}/requirements-test.txt
74skip_install = true
garciadeblas226af6f2023-02-13 17:48:32 +010075allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +010076commands =
77 sh -c 'rm -f nosetests.xml'
78 coverage erase
79 # NG-RO
sousaedu89278b82021-11-19 01:01:32 +000080 nose2 -C --coverage NG-RO/osm_ng_ro -s NG-RO/osm_ng_ro
sousaedu96abfc22021-02-18 14:57:01 +010081 sh -c 'mv .coverage .coverage_ng_ro'
82 # RO-plugin
aticig562623c2022-03-31 22:03:33 +030083 # nose2 -C --coverage RO-plugin/osm_ro_plugin -s RO-plugin/osm_ro_plugin
84 # sh -c 'mv .coverage .coverage_ro_plugin'
sousaedu96abfc22021-02-18 14:57:01 +010085 # RO-SDN-arista_cloudvision
aticig562623c2022-03-31 22:03:33 +030086 # nose2 -C --coverage RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision -s RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision
87 # sh -c 'mv .coverage .coverage_rosdn_arista_cloudvision'
sousaedu96abfc22021-02-18 14:57:01 +010088 # RO-SDN-dpb
aticig562623c2022-03-31 22:03:33 +030089 # nose2 -C --coverage RO-SDN-dpb/osm_rosdn_dpb -s RO-SDN-dpb/osm_rosdn_dpb
90 # sh -c 'mv .coverage .coverage_rosdn_dpb'
sousaedu96abfc22021-02-18 14:57:01 +010091 # RO-SDN-dynpac
aticig562623c2022-03-31 22:03:33 +030092 # nose2 -C --coverage RO-SDN-dynpac/osm_rosdn_dynpac -s RO-SDN-dynpac/osm_rosdn_dynpac
93 # sh -c 'mv .coverage .coverage_rosdn_dynpac'
sousaedu96abfc22021-02-18 14:57:01 +010094 # RO-SDN-floodlight_openflow
aticig562623c2022-03-31 22:03:33 +030095 # nose2 -C --coverage RO-SDN-floodlight_openflow/osm_rosdn_floodlightof -s RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
96 # sh -c 'mv .coverage .coverage_rosdn_floodlightof'
sousaedu96abfc22021-02-18 14:57:01 +010097 # RO-SDN-ietfl2vpn
aticig562623c2022-03-31 22:03:33 +030098 # nose2 -C --coverage RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn -s RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
99 # sh -c 'mv .coverage .coverage_rosdn_ietfl2vpn'
sousaedu96abfc22021-02-18 14:57:01 +0100100 # RO-SDN-juniper_contrail
aticig59e4ba62022-07-29 14:27:16 +0300101 nose2 -C --coverage RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail -s RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
102 sh -c 'mv .coverage .coverage_rosdn_juniper_contrail'
sousaedu96abfc22021-02-18 14:57:01 +0100103 # RO-SDN-odl_openflow
aticig562623c2022-03-31 22:03:33 +0300104 # nose2 -C --coverage RO-SDN-odl_openflow/osm_rosdn_odlof -s RO-SDN-odl_openflow/osm_rosdn_odlof
105 # sh -c 'mv .coverage .coverage_rosdn_odlof'
sousaedu96abfc22021-02-18 14:57:01 +0100106 # RO-SDN-onos_openflow
aticig562623c2022-03-31 22:03:33 +0300107 # nose2 -C --coverage RO-SDN-onos_openflow/osm_rosdn_onosof -s RO-SDN-onos_openflow/osm_rosdn_onosof
108 # sh -c 'mv .coverage .coverage_rosdn_onosof'
sousaedu96abfc22021-02-18 14:57:01 +0100109 # RO-SDN-onos_vpls
aticig562623c2022-03-31 22:03:33 +0300110 # nose2 -C --coverage RO-SDN-onos_vpls/osm_rosdn_onos_vpls -s RO-SDN-onos_vpls/osm_rosdn_onos_vpls
111 # sh -c 'mv .coverage .coverage_rosdn_onos_vpls'
sousaedu96abfc22021-02-18 14:57:01 +0100112 # RO-VIM-aws
aticig562623c2022-03-31 22:03:33 +0300113 # nose2 -C --coverage RO-VIM-aws/osm_rovim_aws -s RO-VIM-aws/osm_rovim_aws
114 # sh -c 'mv .coverage .coverage_rovim_aws'
sousaedu96abfc22021-02-18 14:57:01 +0100115 # RO-VIM-azure
aticig562623c2022-03-31 22:03:33 +0300116 # nose2 -C --coverage RO-VIM-azure/osm_rovim_azure -s RO-VIM-azure/osm_rovim_azure
117 # sh -c 'mv .coverage .coverage_rovim_azure'
sousaedu96abfc22021-02-18 14:57:01 +0100118 # RO-VIM-openstack
aticig562623c2022-03-31 22:03:33 +0300119 nose2 -C --coverage RO-VIM-openstack/osm_rovim_openstack -s RO-VIM-openstack/osm_rovim_openstack
120 sh -c 'mv .coverage .coverage_rovim_openstack'
sousaedu96abfc22021-02-18 14:57:01 +0100121 # RO-VIM-openvim
aticig562623c2022-03-31 22:03:33 +0300122 # nose2 -C --coverage RO-VIM-openvim/osm_rovim_openvim -s RO-VIM-openvim/osm_rovim_openvim
123 # sh -c 'mv .coverage .coverage_rovim_openvim'
sousaedu96abfc22021-02-18 14:57:01 +0100124 # RO-VIM-vmware
sousaedu89278b82021-11-19 01:01:32 +0000125 # nose2 -C --coverage RO-VIM-vmware/osm_rovim_vmware -s RO-VIM-vmware/osm_rovim_vmware
126 # sh -c 'mv .coverage .coverage_rovim_vmware'
gallardo34aa3a92021-10-08 11:50:00 +0000127 # RO-VIM-gcp
aticig562623c2022-03-31 22:03:33 +0300128 # nose2 -C --coverage RO-VIM-gcp/osm_rovim_gcp -s RO-VIM-gcp/osm_rovim_gcp
129 # sh -c 'mv .coverage .coverage_rovim_gcp'
sousaedu96abfc22021-02-18 14:57:01 +0100130 # Combine results and generate reports
aticig562623c2022-03-31 22:03:33 +0300131 # 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
aticig59e4ba62022-07-29 14:27:16 +0300132 coverage combine .coverage_ng_ro .coverage_rovim_openstack .coverage_rosdn_juniper_contrail
sousaedu96abfc22021-02-18 14:57:01 +0100133 coverage report --omit='*tests*'
134 coverage html -d ./cover --omit='*tests*'
135 coverage xml -o coverage.xml --omit='*tests*'
sousaedu96abfc22021-02-18 14:57:01 +0100136
137
138#######################################################################################
139[testenv:flake8]
sousaedu049cbb12022-01-05 11:39:35 +0000140deps =
garciadeblasb032e292023-12-21 16:28:15 +0100141 flake8==6.1.0
sousaedu049cbb12022-01-05 11:39:35 +0000142 flake8-import-order
sousaedu96abfc22021-02-18 14:57:01 +0100143skip_install = true
144commands =
sousaedu686720b2021-11-24 02:16:11 +0000145 flake8 NG-RO/osm_ng_ro/ NG-RO/setup.py
sousaedu049cbb12022-01-05 11:39:35 +0000146 flake8 RO-plugin/osm_ro_plugin/ RO-plugin/setup.py
147 flake8 RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision/ RO-SDN-arista_cloudvision/setup.py
148 flake8 RO-SDN-dpb/osm_rosdn_dpb/ RO-SDN-dpb/setup.py
149 flake8 RO-SDN-dynpac/osm_rosdn_dynpac/ RO-SDN-dynpac/setup.py
150 flake8 RO-SDN-floodlight_openflow/osm_rosdn_floodlightof/ RO-SDN-floodlight_openflow/setup.py
151 flake8 RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn/ RO-SDN-ietfl2vpn/setup.py
152 flake8 RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/ RO-SDN-juniper_contrail/setup.py
153 flake8 RO-SDN-odl_openflow/osm_rosdn_odlof/ RO-SDN-odl_openflow/setup.py
154 flake8 RO-SDN-onos_openflow/osm_rosdn_onosof/ RO-SDN-onos_openflow/setup.py
155 flake8 RO-SDN-onos_vpls/osm_rosdn_onos_vpls/ RO-SDN-onos_vpls/setup.py
156 flake8 RO-VIM-aws/osm_rovim_aws/ RO-VIM-aws/setup.py
157 flake8 RO-VIM-azure/osm_rovim_azure/ RO-VIM-azure/setup.py
158 flake8 RO-VIM-openstack/osm_rovim_openstack/ RO-VIM-openstack/setup.py
159 flake8 RO-VIM-openvim/osm_rovim_openvim/ RO-VIM-openvim/setup.py
160 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
161 flake8 RO-VIM-gcp/osm_rovim_gcp/ RO-VIM-gcp/setup.py
162 flake8 integration-tests/
sousaedu96abfc22021-02-18 14:57:01 +0100163
164
165#######################################################################################
166[testenv:pylint]
167deps = {[testenv]deps}
168 -r{toxinidir}/requirements-dev.txt
169 -r{toxinidir}/requirements-test.txt
170 pylint
171skip_install = true
172commands =
173 - pylint -E NG-RO/osm_ng_ro
174 - pylint -E RO-plugin/osm_ro_plugin
175 - pylint -E RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision
176 - pylint -E RO-SDN-dpb/osm_rosdn_dpb
177 - pylint -E RO-SDN-dynpac/osm_rosdn_dynpac
178 - pylint -E RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
179 - pylint -E RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
180 - pylint -E RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
181 - pylint -E RO-SDN-odl_openflow/osm_rosdn_odlof
182 - pylint -E RO-SDN-onos_openflow/osm_rosdn_onosof
183 - pylint -E RO-SDN-onos_vpls/osm_rosdn_onos_vpls
184 - pylint -E RO-VIM-aws/osm_rovim_aws
185 - pylint -E RO-VIM-azure/osm_rovim_azure
sousaedu96abfc22021-02-18 14:57:01 +0100186 - pylint -E RO-VIM-openstack/osm_rovim_openstack
187 - pylint -E RO-VIM-openvim/osm_rovim_openvim
188 - pylint -E RO-VIM-vmware/osm_rovim_vmware
gallardo34aa3a92021-10-08 11:50:00 +0000189 - pylint -E RO-VIM-gcp/osm_rovim_gcp
sousaedu96abfc22021-02-18 14:57:01 +0100190
191
192#######################################################################################
193[testenv:safety]
194setenv =
195 LC_ALL=C.UTF-8
196 LANG=C.UTF-8
197deps = {[testenv]deps}
198 safety
199skip_install = true
200commands =
201 - safety check --full-report
202
203
204#######################################################################################
205[testenv:pip-compile]
garciadeblasf698ad22022-06-24 17:37:49 +0200206deps = pip-tools==6.6.2
sousaedubecd0832021-04-08 00:16:18 +0200207skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200208allowlist_externals = bash
beierlm83483932022-01-13 13:21:53 -0500209 [
sousaedu96abfc22021-02-18 14:57:01 +0100210commands =
beierlm83483932022-01-13 13:21:53 -0500211 - bash -c "for file in requirements*.in ; do \
212 UNSAFE="" ; \
213 if [[ $file =~ 'dist' ]] ; then UNSAFE='--allow-unsafe' ; fi ; \
214 pip-compile -rU --no-header $UNSAFE $file ;\
sousaedubecd0832021-04-08 00:16:18 +0200215 out=`echo $file | sed 's/.in/.txt/'` ; \
216 sed -i -e '1 e head -16 tox.ini' $out ;\
217 done"
beierlm83483932022-01-13 13:21:53 -0500218 - bash -c "sed -i 's/.*RO-plugin/-e RO-plugin/g' requirements-test.txt"
sousaedu96abfc22021-02-18 14:57:01 +0100219
220
221#######################################################################################
222[testenv:dist_ng_ro]
223deps = {[testenv]deps}
224 -r{toxinidir}/requirements-dist.txt
225skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200226allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100227changedir = {toxinidir}/NG-RO
228commands =
229 sh -c 'rm -rf osm_ng_ro/requirements.txt deb_dist dist osm_ng_ro.egg-info osm_ng_ro*.tar.gz'
230 sh -c 'cp ../requirements.txt osm_ng_ro/requirements.txt'
231 python3 setup.py --command-packages=stdeb.command sdist_dsc
232 sh -c 'cd deb_dist/osm-ng-ro*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000233
sousaedu96abfc22021-02-18 14:57:01 +0100234
235#######################################################################################
236[testenv:dist_ro_plugin]
237deps = {[testenv]deps}
238 -r{toxinidir}/requirements-dist.txt
239skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200240allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100241changedir = {toxinidir}/RO-plugin
242commands =
243 sh -c 'rm -rf deb_dist dist osm_ro_plugin.egg-info osm_ro_plugin*.tar.gz'
244 python3 setup.py --command-packages=stdeb.command sdist_dsc
245 sh -c 'cd deb_dist/osm-ro-plugin*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000246
sousaedu96abfc22021-02-18 14:57:01 +0100247
248#######################################################################################
249[testenv:dist_ro_sdn_arista_cloudvision]
250deps = {[testenv]deps}
251 -r{toxinidir}/requirements-dist.txt
252skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200253allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100254changedir = {toxinidir}/RO-SDN-arista_cloudvision
255commands =
256 sh -c 'rm -rf deb_dist dist osm_rosdn_arista_cloudvision.egg-info osm_rosdn_arista_cloudvision*.tar.gz'
257 python3 setup.py --command-packages=stdeb.command sdist_dsc
258 sh -c 'cd deb_dist/osm-rosdn-arista-cloudvision*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000259
sousaedu96abfc22021-02-18 14:57:01 +0100260
261#######################################################################################
262[testenv:dist_ro_sdn_dpb]
263deps = {[testenv]deps}
264 -r{toxinidir}/requirements-dist.txt
265skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200266allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100267changedir = {toxinidir}/RO-SDN-dpb
268commands =
269 sh -c 'rm -rf deb_dist dist osm_rosdn_dpb.egg-info osm_rosdn_dpb*.tar.gz'
270 python3 setup.py --command-packages=stdeb.command sdist_dsc
271 sh -c 'cd deb_dist/osm-rosdn-dpb*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000272
sousaedu96abfc22021-02-18 14:57:01 +0100273
274#######################################################################################
275[testenv:dist_ro_sdn_dynpac]
276deps = {[testenv]deps}
277 -r{toxinidir}/requirements-dist.txt
278skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200279allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100280changedir = {toxinidir}/RO-SDN-dynpac
281commands =
282 sh -c 'rm -rf deb_dist dist osm_rosdn_dynpac.egg-info osm_rosdn_dynpac*.tar.gz'
283 python3 setup.py --command-packages=stdeb.command sdist_dsc
284 sh -c 'cd deb_dist/osm-rosdn-dynpac*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000285
sousaedu96abfc22021-02-18 14:57:01 +0100286
287#######################################################################################
288[testenv:dist_ro_sdn_floodlight_of]
289deps = {[testenv]deps}
290 -r{toxinidir}/requirements-dist.txt
291skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200292allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100293changedir = {toxinidir}/RO-SDN-floodlight_openflow
294commands =
295 sh -c 'rm -rf deb_dist dist osm_rosdn_floodlightof.egg-info osm_rosdn_floodlightof*.tar.gz'
296 python3 setup.py --command-packages=stdeb.command sdist_dsc
297 sh -c 'cd deb_dist/osm-rosdn-floodlightof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000298
sousaedu96abfc22021-02-18 14:57:01 +0100299
300#######################################################################################
301[testenv:dist_ro_sdn_ietfl2vpn]
302deps = {[testenv]deps}
303 -r{toxinidir}/requirements-dist.txt
304skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200305allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100306changedir = {toxinidir}/RO-SDN-ietfl2vpn
307commands =
308 sh -c 'rm -rf deb_dist dist osm_rosdn_ietfl2vpn.egg-info osm_rosdn_ietfl2vpn*.tar.gz'
309 python3 setup.py --command-packages=stdeb.command sdist_dsc
310 sh -c 'cd deb_dist/osm-rosdn-ietfl2vpn*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000311
sousaedu96abfc22021-02-18 14:57:01 +0100312
313#######################################################################################
314[testenv:dist_ro_sdn_juniper_contrail]
315deps = {[testenv]deps}
316 -r{toxinidir}/requirements-dist.txt
317skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200318allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100319changedir = {toxinidir}/RO-SDN-juniper_contrail
320commands =
321 sh -c 'rm -rf deb_dist dist osm_rosdn_juniper_contrail.egg-info osm_rosdn_juniper_contrail*.tar.gz'
322 python3 setup.py --command-packages=stdeb.command sdist_dsc
323 sh -c 'cd deb_dist/osm-rosdn-juniper-contrail*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000324
sousaedu96abfc22021-02-18 14:57:01 +0100325
326#######################################################################################
327[testenv:dist_ro_sdn_odl_of]
328deps = {[testenv]deps}
329 -r{toxinidir}/requirements-dist.txt
330skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200331allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100332changedir = {toxinidir}/RO-SDN-odl_openflow
333commands =
334 sh -c 'rm -rf deb_dist dist osm_rosdn_odlof.egg-info osm_rosdn_odlof*.tar.gz'
335 python3 setup.py --command-packages=stdeb.command sdist_dsc
336 sh -c 'cd deb_dist/osm-rosdn-odlof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000337
sousaedu96abfc22021-02-18 14:57:01 +0100338
339#######################################################################################
340[testenv:dist_ro_sdn_onos_of]
341deps = {[testenv]deps}
342 -r{toxinidir}/requirements-dist.txt
343skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200344allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100345changedir = {toxinidir}/RO-SDN-onos_openflow
346commands =
347 sh -c 'rm -rf deb_dist dist osm_rosdn_onosof.egg-info osm_rosdn_onosof*.tar.gz'
348 python3 setup.py --command-packages=stdeb.command sdist_dsc
349 sh -c 'cd deb_dist/osm-rosdn-onosof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000350
sousaedu96abfc22021-02-18 14:57:01 +0100351
352#######################################################################################
353[testenv:dist_ro_sdn_onos_vpls]
354deps = {[testenv]deps}
355 -r{toxinidir}/requirements-dist.txt
356skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200357allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100358changedir = {toxinidir}/RO-SDN-onos_vpls
359commands =
360 sh -c 'rm -rf deb_dist dist osm_rosdn_onos_vpls.egg-info osm_rosdn_onos_vpls*.tar.gz'
361 python3 setup.py --command-packages=stdeb.command sdist_dsc
362 sh -c 'cd deb_dist/osm-rosdn-onos-vpls*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000363
sousaedu96abfc22021-02-18 14:57:01 +0100364
365#######################################################################################
366[testenv:dist_ro_vim_aws]
367deps = {[testenv]deps}
368 -r{toxinidir}/requirements-dist.txt
369skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200370allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100371changedir = {toxinidir}/RO-VIM-aws
372commands =
373 sh -c 'rm -rf deb_dist dist osm_rovim_aws.egg-info osm_rovim_aws*.tar.gz'
374 python3 setup.py --command-packages=stdeb.command sdist_dsc
375 sh -c 'cd deb_dist/osm-rovim-aws*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000376
sousaedu96abfc22021-02-18 14:57:01 +0100377
378#######################################################################################
379[testenv:dist_ro_vim_azure]
380deps = {[testenv]deps}
381 -r{toxinidir}/requirements-dist.txt
382skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200383allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100384changedir = {toxinidir}/RO-VIM-azure
385commands =
386 sh -c 'rm -rf deb_dist dist osm_rovim_azure.egg-info osm_rovim_azure*.tar.gz'
387 python3 setup.py --command-packages=stdeb.command sdist_dsc
388 sh -c 'cd deb_dist/osm-rovim-azure*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000389
sousaedu96abfc22021-02-18 14:57:01 +0100390
391#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100392[testenv:dist_ro_vim_openstack]
393deps = {[testenv]deps}
394 -r{toxinidir}/requirements-dist.txt
395skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200396allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100397changedir = {toxinidir}/RO-VIM-openstack
398commands =
399 sh -c 'rm -rf deb_dist dist osm_rovim_openstack.egg-info osm_rovim_openstack*.tar.gz'
400 python3 setup.py --command-packages=stdeb.command sdist_dsc
401 sh -c 'cd deb_dist/osm-rovim-openstack*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000402
sousaedu96abfc22021-02-18 14:57:01 +0100403
404#######################################################################################
405[testenv:dist_ro_vim_openvim]
406deps = {[testenv]deps}
407 -r{toxinidir}/requirements-dist.txt
408skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200409allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100410changedir = {toxinidir}/RO-VIM-openvim
411commands =
412 sh -c 'rm -rf deb_dist dist osm_rovim_openvim.egg-info osm_rovim_openvim*.tar.gz'
413 python3 setup.py --command-packages=stdeb.command sdist_dsc
414 sh -c 'cd deb_dist/osm-rovim-openvim*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000415
sousaedu96abfc22021-02-18 14:57:01 +0100416
417#######################################################################################
418[testenv:dist_ro_vim_vmware]
419deps = {[testenv]deps}
420 -r{toxinidir}/requirements-dist.txt
421skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200422allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100423changedir = {toxinidir}/RO-VIM-vmware
424commands =
425 sh -c 'rm -rf deb_dist dist osm_rovim_vmware.egg-info osm_rovim_vmware*.tar.gz'
426 python3 setup.py --command-packages=stdeb.command sdist_dsc
427 sh -c 'cd deb_dist/osm-rovim-vmware*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000428
sousaedu96abfc22021-02-18 14:57:01 +0100429
430#######################################################################################
gallardo34aa3a92021-10-08 11:50:00 +0000431[testenv:dist_ro_vim_gcp]
432deps = {[testenv]deps}
433 -r{toxinidir}/requirements-dist.txt
434skip_install = true
garciadeblasdb060342023-03-28 21:58:01 +0200435allowlist_externals = sh
gallardo34aa3a92021-10-08 11:50:00 +0000436changedir = {toxinidir}/RO-VIM-gcp
437commands =
438 sh -c 'rm -rf deb_dist dist osm_rovim_gcp.egg-info osm_rovim_gcp*.tar.gz'
439 python3 setup.py --command-packages=stdeb.command sdist_dsc
440 sh -c 'cd deb_dist/osm-rovim-gcp*/ && dpkg-buildpackage -rfakeroot -uc -us'
gallardo34aa3a92021-10-08 11:50:00 +0000441
442
443#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100444[flake8]
445ignore =
446 W291,
447 W293,
448 W503,
449 W605,
450 E123,
451 E125,
452 E203,
453 E226,
aticig78ac0cf2022-07-15 00:43:09 +0300454 E241,
455 E501,
sousaedu96abfc22021-02-18 14:57:01 +0100456exclude =
457 .git,
458 __pycache__,
459 .tox,
460max-line-length = 120
461show-source = True
462builtins = _
sousaedu049cbb12022-01-05 11:39:35 +0000463import-order-style = google