blob: dfa849463a84a3962af623718361cbd1dfbd4523 [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]
aticig72c67142022-03-31 22:03:33 +030019envlist = black, flake8, safety, cover
sousaedu96abfc22021-02-18 14:57:01 +010020
21[tox:jenkins]
22toxworkdir = /tmp/.tox
Mark Beierl05721002022-07-14 09:41:20 -040023setenv = 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
sousaedube0a8382022-01-25 14:11:04 +000038whitelist_externals = bash
sousaedu1077bbd2021-04-15 01:18:59 +020039commands =
40 reno new {posargs:new_feature}
sousaedube0a8382022-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]
46deps = black
47skip_install = true
48commands =
sousaedu97508412021-11-29 09:28:15 +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
sousaedu97508412021-11-29 09:28:15 +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
sousaedu0fe84cb2022-01-17 13:48:22 +000075whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +010076commands =
77 sh -c 'rm -f nosetests.xml'
78 coverage erase
79 # NG-RO
sousaedu0fe84cb2022-01-17 13:48:22 +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
aticig72c67142022-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
aticig72c67142022-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
aticig72c67142022-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
aticig72c67142022-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
aticig72c67142022-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
aticig72c67142022-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
aticig72c67142022-03-31 22:03:33 +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
aticig72c67142022-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
aticig72c67142022-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
aticig72c67142022-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
aticig72c67142022-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
aticig72c67142022-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
aticig72c67142022-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
aticig72c67142022-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
sousaedu0fe84cb2022-01-17 13:48:22 +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
aticig72c67142022-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
aticig72c67142022-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
132 coverage combine .coverage_ng_ro .coverage_rovim_openstack
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[testenv:flake8]
sousaedu0fe84cb2022-01-17 13:48:22 +0000139deps = flake8
140 flake8-import-order
sousaedu96abfc22021-02-18 14:57:01 +0100141skip_install = true
142commands =
sousaedu0fe84cb2022-01-17 13:48:22 +0000143 flake8 NG-RO/osm_ng_ro/ NG-RO/setup.py
144 flake8 RO-plugin/osm_ro_plugin/ RO-plugin/setup.py
145 flake8 RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision/ RO-SDN-arista_cloudvision/setup.py
146 flake8 RO-SDN-dpb/osm_rosdn_dpb/ RO-SDN-dpb/setup.py
147 flake8 RO-SDN-dynpac/osm_rosdn_dynpac/ RO-SDN-dynpac/setup.py
148 flake8 RO-SDN-floodlight_openflow/osm_rosdn_floodlightof/ RO-SDN-floodlight_openflow/setup.py
149 flake8 RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn/ RO-SDN-ietfl2vpn/setup.py
150 flake8 RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/ RO-SDN-juniper_contrail/setup.py
151 flake8 RO-SDN-odl_openflow/osm_rosdn_odlof/ RO-SDN-odl_openflow/setup.py
152 flake8 RO-SDN-onos_openflow/osm_rosdn_onosof/ RO-SDN-onos_openflow/setup.py
153 flake8 RO-SDN-onos_vpls/osm_rosdn_onos_vpls/ RO-SDN-onos_vpls/setup.py
154 flake8 RO-VIM-aws/osm_rovim_aws/ RO-VIM-aws/setup.py
155 flake8 RO-VIM-azure/osm_rovim_azure/ RO-VIM-azure/setup.py
156 flake8 RO-VIM-openstack/osm_rovim_openstack/ RO-VIM-openstack/setup.py
157 flake8 RO-VIM-openvim/osm_rovim_openvim/ RO-VIM-openvim/setup.py
158 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
159 flake8 RO-VIM-gcp/osm_rovim_gcp/ RO-VIM-gcp/setup.py
160 flake8 integration-tests/
sousaedu96abfc22021-02-18 14:57:01 +0100161
162
163#######################################################################################
164[testenv:pylint]
165deps = {[testenv]deps}
166 -r{toxinidir}/requirements-dev.txt
167 -r{toxinidir}/requirements-test.txt
168 pylint
169skip_install = true
170commands =
171 - pylint -E NG-RO/osm_ng_ro
172 - pylint -E RO-plugin/osm_ro_plugin
173 - pylint -E RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision
174 - pylint -E RO-SDN-dpb/osm_rosdn_dpb
175 - pylint -E RO-SDN-dynpac/osm_rosdn_dynpac
176 - pylint -E RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
177 - pylint -E RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
178 - pylint -E RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
179 - pylint -E RO-SDN-odl_openflow/osm_rosdn_odlof
180 - pylint -E RO-SDN-onos_openflow/osm_rosdn_onosof
181 - pylint -E RO-SDN-onos_vpls/osm_rosdn_onos_vpls
182 - pylint -E RO-VIM-aws/osm_rovim_aws
183 - pylint -E RO-VIM-azure/osm_rovim_azure
sousaedu96abfc22021-02-18 14:57:01 +0100184 - pylint -E RO-VIM-openstack/osm_rovim_openstack
185 - pylint -E RO-VIM-openvim/osm_rovim_openvim
186 - pylint -E RO-VIM-vmware/osm_rovim_vmware
gallardo34aa3a92021-10-08 11:50:00 +0000187 - pylint -E RO-VIM-gcp/osm_rovim_gcp
sousaedu96abfc22021-02-18 14:57:01 +0100188
189
190#######################################################################################
191[testenv:safety]
192setenv =
193 LC_ALL=C.UTF-8
194 LANG=C.UTF-8
195deps = {[testenv]deps}
196 safety
197skip_install = true
198commands =
199 - safety check --full-report
200
201
202#######################################################################################
203[testenv:pip-compile]
beierlm5ef8b732022-01-13 13:21:53 -0500204deps = pip-tools==6.4.0
sousaedubecd0832021-04-08 00:16:18 +0200205skip_install = true
beierlm5ef8b732022-01-13 13:21:53 -0500206whitelist_externals = bash
207 [
sousaedu96abfc22021-02-18 14:57:01 +0100208commands =
beierlm5ef8b732022-01-13 13:21:53 -0500209 - bash -c "for file in requirements*.in ; do \
210 UNSAFE="" ; \
211 if [[ $file =~ 'dist' ]] ; then UNSAFE='--allow-unsafe' ; fi ; \
212 pip-compile -rU --no-header $UNSAFE $file ;\
sousaedubecd0832021-04-08 00:16:18 +0200213 out=`echo $file | sed 's/.in/.txt/'` ; \
214 sed -i -e '1 e head -16 tox.ini' $out ;\
215 done"
beierlm5ef8b732022-01-13 13:21:53 -0500216 - bash -c "sed -i 's/.*RO-plugin/-e RO-plugin/g' requirements-test.txt"
sousaedu96abfc22021-02-18 14:57:01 +0100217
218
219#######################################################################################
220[testenv:dist_ng_ro]
221deps = {[testenv]deps}
222 -r{toxinidir}/requirements-dist.txt
223skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000224whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100225changedir = {toxinidir}/NG-RO
226commands =
227 sh -c 'rm -rf osm_ng_ro/requirements.txt deb_dist dist osm_ng_ro.egg-info osm_ng_ro*.tar.gz'
228 sh -c 'cp ../requirements.txt osm_ng_ro/requirements.txt'
229 python3 setup.py --command-packages=stdeb.command sdist_dsc
230 sh -c 'cd deb_dist/osm-ng-ro*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000231
sousaedu96abfc22021-02-18 14:57:01 +0100232
233#######################################################################################
234[testenv:dist_ro_plugin]
235deps = {[testenv]deps}
236 -r{toxinidir}/requirements-dist.txt
237skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000238whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100239changedir = {toxinidir}/RO-plugin
240commands =
241 sh -c 'rm -rf deb_dist dist osm_ro_plugin.egg-info osm_ro_plugin*.tar.gz'
242 python3 setup.py --command-packages=stdeb.command sdist_dsc
243 sh -c 'cd deb_dist/osm-ro-plugin*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000244
sousaedu96abfc22021-02-18 14:57:01 +0100245
246#######################################################################################
247[testenv:dist_ro_sdn_arista_cloudvision]
248deps = {[testenv]deps}
249 -r{toxinidir}/requirements-dist.txt
250skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000251whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100252changedir = {toxinidir}/RO-SDN-arista_cloudvision
253commands =
254 sh -c 'rm -rf deb_dist dist osm_rosdn_arista_cloudvision.egg-info osm_rosdn_arista_cloudvision*.tar.gz'
255 python3 setup.py --command-packages=stdeb.command sdist_dsc
256 sh -c 'cd deb_dist/osm-rosdn-arista-cloudvision*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000257
sousaedu96abfc22021-02-18 14:57:01 +0100258
259#######################################################################################
260[testenv:dist_ro_sdn_dpb]
261deps = {[testenv]deps}
262 -r{toxinidir}/requirements-dist.txt
263skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000264whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100265changedir = {toxinidir}/RO-SDN-dpb
266commands =
267 sh -c 'rm -rf deb_dist dist osm_rosdn_dpb.egg-info osm_rosdn_dpb*.tar.gz'
268 python3 setup.py --command-packages=stdeb.command sdist_dsc
269 sh -c 'cd deb_dist/osm-rosdn-dpb*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000270
sousaedu96abfc22021-02-18 14:57:01 +0100271
272#######################################################################################
273[testenv:dist_ro_sdn_dynpac]
274deps = {[testenv]deps}
275 -r{toxinidir}/requirements-dist.txt
276skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000277whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100278changedir = {toxinidir}/RO-SDN-dynpac
279commands =
280 sh -c 'rm -rf deb_dist dist osm_rosdn_dynpac.egg-info osm_rosdn_dynpac*.tar.gz'
281 python3 setup.py --command-packages=stdeb.command sdist_dsc
282 sh -c 'cd deb_dist/osm-rosdn-dynpac*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000283
sousaedu96abfc22021-02-18 14:57:01 +0100284
285#######################################################################################
286[testenv:dist_ro_sdn_floodlight_of]
287deps = {[testenv]deps}
288 -r{toxinidir}/requirements-dist.txt
289skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000290whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100291changedir = {toxinidir}/RO-SDN-floodlight_openflow
292commands =
293 sh -c 'rm -rf deb_dist dist osm_rosdn_floodlightof.egg-info osm_rosdn_floodlightof*.tar.gz'
294 python3 setup.py --command-packages=stdeb.command sdist_dsc
295 sh -c 'cd deb_dist/osm-rosdn-floodlightof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000296
sousaedu96abfc22021-02-18 14:57:01 +0100297
298#######################################################################################
299[testenv:dist_ro_sdn_ietfl2vpn]
300deps = {[testenv]deps}
301 -r{toxinidir}/requirements-dist.txt
302skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000303whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100304changedir = {toxinidir}/RO-SDN-ietfl2vpn
305commands =
306 sh -c 'rm -rf deb_dist dist osm_rosdn_ietfl2vpn.egg-info osm_rosdn_ietfl2vpn*.tar.gz'
307 python3 setup.py --command-packages=stdeb.command sdist_dsc
308 sh -c 'cd deb_dist/osm-rosdn-ietfl2vpn*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000309
sousaedu96abfc22021-02-18 14:57:01 +0100310
311#######################################################################################
312[testenv:dist_ro_sdn_juniper_contrail]
313deps = {[testenv]deps}
314 -r{toxinidir}/requirements-dist.txt
315skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000316whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100317changedir = {toxinidir}/RO-SDN-juniper_contrail
318commands =
319 sh -c 'rm -rf deb_dist dist osm_rosdn_juniper_contrail.egg-info osm_rosdn_juniper_contrail*.tar.gz'
320 python3 setup.py --command-packages=stdeb.command sdist_dsc
321 sh -c 'cd deb_dist/osm-rosdn-juniper-contrail*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000322
sousaedu96abfc22021-02-18 14:57:01 +0100323
324#######################################################################################
325[testenv:dist_ro_sdn_odl_of]
326deps = {[testenv]deps}
327 -r{toxinidir}/requirements-dist.txt
328skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000329whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100330changedir = {toxinidir}/RO-SDN-odl_openflow
331commands =
332 sh -c 'rm -rf deb_dist dist osm_rosdn_odlof.egg-info osm_rosdn_odlof*.tar.gz'
333 python3 setup.py --command-packages=stdeb.command sdist_dsc
334 sh -c 'cd deb_dist/osm-rosdn-odlof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000335
sousaedu96abfc22021-02-18 14:57:01 +0100336
337#######################################################################################
338[testenv:dist_ro_sdn_onos_of]
339deps = {[testenv]deps}
340 -r{toxinidir}/requirements-dist.txt
341skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000342whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100343changedir = {toxinidir}/RO-SDN-onos_openflow
344commands =
345 sh -c 'rm -rf deb_dist dist osm_rosdn_onosof.egg-info osm_rosdn_onosof*.tar.gz'
346 python3 setup.py --command-packages=stdeb.command sdist_dsc
347 sh -c 'cd deb_dist/osm-rosdn-onosof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000348
sousaedu96abfc22021-02-18 14:57:01 +0100349
350#######################################################################################
351[testenv:dist_ro_sdn_onos_vpls]
352deps = {[testenv]deps}
353 -r{toxinidir}/requirements-dist.txt
354skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000355whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100356changedir = {toxinidir}/RO-SDN-onos_vpls
357commands =
358 sh -c 'rm -rf deb_dist dist osm_rosdn_onos_vpls.egg-info osm_rosdn_onos_vpls*.tar.gz'
359 python3 setup.py --command-packages=stdeb.command sdist_dsc
360 sh -c 'cd deb_dist/osm-rosdn-onos-vpls*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000361
sousaedu96abfc22021-02-18 14:57:01 +0100362
363#######################################################################################
364[testenv:dist_ro_vim_aws]
365deps = {[testenv]deps}
366 -r{toxinidir}/requirements-dist.txt
367skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000368whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100369changedir = {toxinidir}/RO-VIM-aws
370commands =
371 sh -c 'rm -rf deb_dist dist osm_rovim_aws.egg-info osm_rovim_aws*.tar.gz'
372 python3 setup.py --command-packages=stdeb.command sdist_dsc
373 sh -c 'cd deb_dist/osm-rovim-aws*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000374
sousaedu96abfc22021-02-18 14:57:01 +0100375
376#######################################################################################
377[testenv:dist_ro_vim_azure]
378deps = {[testenv]deps}
379 -r{toxinidir}/requirements-dist.txt
380skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000381whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100382changedir = {toxinidir}/RO-VIM-azure
383commands =
384 sh -c 'rm -rf deb_dist dist osm_rovim_azure.egg-info osm_rovim_azure*.tar.gz'
385 python3 setup.py --command-packages=stdeb.command sdist_dsc
386 sh -c 'cd deb_dist/osm-rovim-azure*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000387
sousaedu96abfc22021-02-18 14:57:01 +0100388
389#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100390[testenv:dist_ro_vim_openstack]
391deps = {[testenv]deps}
392 -r{toxinidir}/requirements-dist.txt
393skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000394whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100395changedir = {toxinidir}/RO-VIM-openstack
396commands =
397 sh -c 'rm -rf deb_dist dist osm_rovim_openstack.egg-info osm_rovim_openstack*.tar.gz'
398 python3 setup.py --command-packages=stdeb.command sdist_dsc
399 sh -c 'cd deb_dist/osm-rovim-openstack*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000400
sousaedu96abfc22021-02-18 14:57:01 +0100401
402#######################################################################################
403[testenv:dist_ro_vim_openvim]
404deps = {[testenv]deps}
405 -r{toxinidir}/requirements-dist.txt
406skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000407whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100408changedir = {toxinidir}/RO-VIM-openvim
409commands =
410 sh -c 'rm -rf deb_dist dist osm_rovim_openvim.egg-info osm_rovim_openvim*.tar.gz'
411 python3 setup.py --command-packages=stdeb.command sdist_dsc
412 sh -c 'cd deb_dist/osm-rovim-openvim*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000413
sousaedu96abfc22021-02-18 14:57:01 +0100414
415#######################################################################################
416[testenv:dist_ro_vim_vmware]
417deps = {[testenv]deps}
418 -r{toxinidir}/requirements-dist.txt
419skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000420whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100421changedir = {toxinidir}/RO-VIM-vmware
422commands =
423 sh -c 'rm -rf deb_dist dist osm_rovim_vmware.egg-info osm_rovim_vmware*.tar.gz'
424 python3 setup.py --command-packages=stdeb.command sdist_dsc
425 sh -c 'cd deb_dist/osm-rovim-vmware*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000426
sousaedu96abfc22021-02-18 14:57:01 +0100427
428#######################################################################################
gallardo34aa3a92021-10-08 11:50:00 +0000429[testenv:dist_ro_vim_gcp]
430deps = {[testenv]deps}
431 -r{toxinidir}/requirements-dist.txt
432skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000433whitelist_externals = sh
gallardo34aa3a92021-10-08 11:50:00 +0000434changedir = {toxinidir}/RO-VIM-gcp
435commands =
436 sh -c 'rm -rf deb_dist dist osm_rovim_gcp.egg-info osm_rovim_gcp*.tar.gz'
437 python3 setup.py --command-packages=stdeb.command sdist_dsc
438 sh -c 'cd deb_dist/osm-rovim-gcp*/ && dpkg-buildpackage -rfakeroot -uc -us'
gallardo34aa3a92021-10-08 11:50:00 +0000439
440
441#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100442[flake8]
443ignore =
444 W291,
445 W293,
446 W503,
447 W605,
448 E123,
449 E125,
450 E203,
451 E226,
452 E241
453exclude =
454 .git,
455 __pycache__,
456 .tox,
457max-line-length = 120
458show-source = True
459builtins = _
sousaedu0fe84cb2022-01-17 13:48:22 +0000460import-order-style = google