blob: c4280e0aa645e036c158046b2aa2c8aa1c6e150d [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]
sousaedu97508412021-11-29 09:28:15 +000019envlist = black, flake8, safety
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
sousaedube0a8382022-01-25 14:11:04 +000037whitelist_externals = bash
sousaedu1077bbd2021-04-15 01:18:59 +020038commands =
39 reno new {posargs:new_feature}
sousaedube0a8382022-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 =
sousaedu97508412021-11-29 09:28:15 +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
sousaedu97508412021-11-29 09:28:15 +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
sousaedu0fe84cb2022-01-17 13:48:22 +000074whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +010075commands =
76 sh -c 'rm -f nosetests.xml'
77 coverage erase
78 # NG-RO
sousaedu0fe84cb2022-01-17 13:48:22 +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
sousaedu0fe84cb2022-01-17 13:48:22 +000082 nose2 -C --coverage RO-plugin/osm_ro_plugin -s RO-plugin/osm_ro_plugin
sousaedu96abfc22021-02-18 14:57:01 +010083 sh -c 'mv .coverage .coverage_ro_plugin'
84 # RO-SDN-arista_cloudvision
sousaedu0fe84cb2022-01-17 13:48:22 +000085 nose2 -C --coverage RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision -s RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision
sousaedu96abfc22021-02-18 14:57:01 +010086 sh -c 'mv .coverage .coverage_rosdn_arista_cloudvision'
87 # RO-SDN-dpb
sousaedu0fe84cb2022-01-17 13:48:22 +000088 nose2 -C --coverage RO-SDN-dpb/osm_rosdn_dpb -s RO-SDN-dpb/osm_rosdn_dpb
sousaedu96abfc22021-02-18 14:57:01 +010089 sh -c 'mv .coverage .coverage_rosdn_dpb'
90 # RO-SDN-dynpac
sousaedu0fe84cb2022-01-17 13:48:22 +000091 nose2 -C --coverage RO-SDN-dynpac/osm_rosdn_dynpac -s RO-SDN-dynpac/osm_rosdn_dynpac
sousaedu96abfc22021-02-18 14:57:01 +010092 sh -c 'mv .coverage .coverage_rosdn_dynpac'
93 # RO-SDN-floodlight_openflow
sousaedu0fe84cb2022-01-17 13:48:22 +000094 nose2 -C --coverage RO-SDN-floodlight_openflow/osm_rosdn_floodlightof -s RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
sousaedu96abfc22021-02-18 14:57:01 +010095 sh -c 'mv .coverage .coverage_rosdn_floodlightof'
96 # RO-SDN-ietfl2vpn
sousaedu0fe84cb2022-01-17 13:48:22 +000097 nose2 -C --coverage RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn -s RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
sousaedu96abfc22021-02-18 14:57:01 +010098 sh -c 'mv .coverage .coverage_rosdn_ietfl2vpn'
99 # RO-SDN-juniper_contrail
sousaedu0fe84cb2022-01-17 13:48:22 +0000100 nose2 -C --coverage RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail -s RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
sousaedu96abfc22021-02-18 14:57:01 +0100101 sh -c 'mv .coverage .coverage_rosdn_juniper_contrail'
102 # RO-SDN-odl_openflow
sousaedu0fe84cb2022-01-17 13:48:22 +0000103 nose2 -C --coverage RO-SDN-odl_openflow/osm_rosdn_odlof -s RO-SDN-odl_openflow/osm_rosdn_odlof
sousaedu96abfc22021-02-18 14:57:01 +0100104 sh -c 'mv .coverage .coverage_rosdn_odlof'
105 # RO-SDN-onos_openflow
sousaedu0fe84cb2022-01-17 13:48:22 +0000106 nose2 -C --coverage RO-SDN-onos_openflow/osm_rosdn_onosof -s RO-SDN-onos_openflow/osm_rosdn_onosof
sousaedu96abfc22021-02-18 14:57:01 +0100107 sh -c 'mv .coverage .coverage_rosdn_onosof'
108 # RO-SDN-onos_vpls
sousaedu0fe84cb2022-01-17 13:48:22 +0000109 nose2 -C --coverage RO-SDN-onos_vpls/osm_rosdn_onos_vpls -s RO-SDN-onos_vpls/osm_rosdn_onos_vpls
sousaedu96abfc22021-02-18 14:57:01 +0100110 sh -c 'mv .coverage .coverage_rosdn_onos_vpls'
111 # RO-VIM-aws
sousaedu0fe84cb2022-01-17 13:48:22 +0000112 nose2 -C --coverage RO-VIM-aws/osm_rovim_aws -s RO-VIM-aws/osm_rovim_aws
sousaedu96abfc22021-02-18 14:57:01 +0100113 sh -c 'mv .coverage .coverage_rovim_aws'
114 # RO-VIM-azure
sousaedu0fe84cb2022-01-17 13:48:22 +0000115 nose2 -C --coverage RO-VIM-azure/osm_rovim_azure -s RO-VIM-azure/osm_rovim_azure
sousaedu96abfc22021-02-18 14:57:01 +0100116 sh -c 'mv .coverage .coverage_rovim_azure'
sousaedu96abfc22021-02-18 14:57:01 +0100117 # RO-VIM-openstack
sousaedu0fe84cb2022-01-17 13:48:22 +0000118 # 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
sousaedu0fe84cb2022-01-17 13:48:22 +0000121 nose2 -C --coverage RO-VIM-openvim/osm_rovim_openvim -s RO-VIM-openvim/osm_rovim_openvim
sousaedu96abfc22021-02-18 14:57:01 +0100122 sh -c 'mv .coverage .coverage_rovim_openvim'
123 # RO-VIM-vmware
sousaedu0fe84cb2022-01-17 13:48:22 +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
sousaedu0fe84cb2022-01-17 13:48:22 +0000127 nose2 -C --coverage RO-VIM-gcp/osm_rovim_gcp -s RO-VIM-gcp/osm_rovim_gcp
gallardo34aa3a92021-10-08 11:50:00 +0000128 sh -c 'mv .coverage .coverage_rovim_gcp'
sousaedu96abfc22021-02-18 14:57:01 +0100129 # Combine results and generate reports
sousaedu10250fb2021-12-10 14:53:11 +0000130 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
sousaedu96abfc22021-02-18 14:57:01 +0100131 coverage report --omit='*tests*'
132 coverage html -d ./cover --omit='*tests*'
133 coverage xml -o coverage.xml --omit='*tests*'
sousaedu96abfc22021-02-18 14:57:01 +0100134
135#######################################################################################
136[testenv:flake8]
sousaedu0fe84cb2022-01-17 13:48:22 +0000137deps = flake8
138 flake8-import-order
sousaedu96abfc22021-02-18 14:57:01 +0100139skip_install = true
140commands =
sousaedu0fe84cb2022-01-17 13:48:22 +0000141 flake8 NG-RO/osm_ng_ro/ NG-RO/setup.py
142 flake8 RO-plugin/osm_ro_plugin/ RO-plugin/setup.py
143 flake8 RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision/ RO-SDN-arista_cloudvision/setup.py
144 flake8 RO-SDN-dpb/osm_rosdn_dpb/ RO-SDN-dpb/setup.py
145 flake8 RO-SDN-dynpac/osm_rosdn_dynpac/ RO-SDN-dynpac/setup.py
146 flake8 RO-SDN-floodlight_openflow/osm_rosdn_floodlightof/ RO-SDN-floodlight_openflow/setup.py
147 flake8 RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn/ RO-SDN-ietfl2vpn/setup.py
148 flake8 RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/ RO-SDN-juniper_contrail/setup.py
149 flake8 RO-SDN-odl_openflow/osm_rosdn_odlof/ RO-SDN-odl_openflow/setup.py
150 flake8 RO-SDN-onos_openflow/osm_rosdn_onosof/ RO-SDN-onos_openflow/setup.py
151 flake8 RO-SDN-onos_vpls/osm_rosdn_onos_vpls/ RO-SDN-onos_vpls/setup.py
152 flake8 RO-VIM-aws/osm_rovim_aws/ RO-VIM-aws/setup.py
153 flake8 RO-VIM-azure/osm_rovim_azure/ RO-VIM-azure/setup.py
154 flake8 RO-VIM-openstack/osm_rovim_openstack/ RO-VIM-openstack/setup.py
155 flake8 RO-VIM-openvim/osm_rovim_openvim/ RO-VIM-openvim/setup.py
156 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
157 flake8 RO-VIM-gcp/osm_rovim_gcp/ RO-VIM-gcp/setup.py
158 flake8 integration-tests/
sousaedu96abfc22021-02-18 14:57:01 +0100159
160
161#######################################################################################
162[testenv:pylint]
163deps = {[testenv]deps}
164 -r{toxinidir}/requirements-dev.txt
165 -r{toxinidir}/requirements-test.txt
166 pylint
167skip_install = true
168commands =
169 - pylint -E NG-RO/osm_ng_ro
170 - pylint -E RO-plugin/osm_ro_plugin
171 - pylint -E RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision
172 - pylint -E RO-SDN-dpb/osm_rosdn_dpb
173 - pylint -E RO-SDN-dynpac/osm_rosdn_dynpac
174 - pylint -E RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
175 - pylint -E RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
176 - pylint -E RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
177 - pylint -E RO-SDN-odl_openflow/osm_rosdn_odlof
178 - pylint -E RO-SDN-onos_openflow/osm_rosdn_onosof
179 - pylint -E RO-SDN-onos_vpls/osm_rosdn_onos_vpls
180 - pylint -E RO-VIM-aws/osm_rovim_aws
181 - pylint -E RO-VIM-azure/osm_rovim_azure
sousaedu96abfc22021-02-18 14:57:01 +0100182 - pylint -E RO-VIM-openstack/osm_rovim_openstack
183 - pylint -E RO-VIM-openvim/osm_rovim_openvim
184 - pylint -E RO-VIM-vmware/osm_rovim_vmware
gallardo34aa3a92021-10-08 11:50:00 +0000185 - pylint -E RO-VIM-gcp/osm_rovim_gcp
sousaedu96abfc22021-02-18 14:57:01 +0100186
187
188#######################################################################################
189[testenv:safety]
190setenv =
191 LC_ALL=C.UTF-8
192 LANG=C.UTF-8
193deps = {[testenv]deps}
194 safety
195skip_install = true
196commands =
197 - safety check --full-report
198
199
200#######################################################################################
201[testenv:pip-compile]
202deps = pip-tools==5.5.0
sousaedubecd0832021-04-08 00:16:18 +0200203skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000204whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100205commands =
sousaedubecd0832021-04-08 00:16:18 +0200206 - sh -c "for file in requirements*.in ; do pip-compile -rU --no-header $file ;\
207 out=`echo $file | sed 's/.in/.txt/'` ; \
208 sed -i -e '1 e head -16 tox.ini' $out ;\
209 done"
sousaedu10250fb2021-12-10 14:53:11 +0000210 - sh -c "sed -i 's/.*RO-plugin/-e RO-plugin/g' requirements-test.txt"
sousaedu96abfc22021-02-18 14:57:01 +0100211
212
213#######################################################################################
214[testenv:dist_ng_ro]
215deps = {[testenv]deps}
216 -r{toxinidir}/requirements-dist.txt
217skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000218whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100219changedir = {toxinidir}/NG-RO
220commands =
221 sh -c 'rm -rf osm_ng_ro/requirements.txt deb_dist dist osm_ng_ro.egg-info osm_ng_ro*.tar.gz'
222 sh -c 'cp ../requirements.txt osm_ng_ro/requirements.txt'
223 python3 setup.py --command-packages=stdeb.command sdist_dsc
224 sh -c 'cd deb_dist/osm-ng-ro*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000225
sousaedu96abfc22021-02-18 14:57:01 +0100226
227#######################################################################################
228[testenv:dist_ro_plugin]
229deps = {[testenv]deps}
230 -r{toxinidir}/requirements-dist.txt
231skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000232whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100233changedir = {toxinidir}/RO-plugin
234commands =
235 sh -c 'rm -rf deb_dist dist osm_ro_plugin.egg-info osm_ro_plugin*.tar.gz'
236 python3 setup.py --command-packages=stdeb.command sdist_dsc
237 sh -c 'cd deb_dist/osm-ro-plugin*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000238
sousaedu96abfc22021-02-18 14:57:01 +0100239
240#######################################################################################
241[testenv:dist_ro_sdn_arista_cloudvision]
242deps = {[testenv]deps}
243 -r{toxinidir}/requirements-dist.txt
244skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000245whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100246changedir = {toxinidir}/RO-SDN-arista_cloudvision
247commands =
248 sh -c 'rm -rf deb_dist dist osm_rosdn_arista_cloudvision.egg-info osm_rosdn_arista_cloudvision*.tar.gz'
249 python3 setup.py --command-packages=stdeb.command sdist_dsc
250 sh -c 'cd deb_dist/osm-rosdn-arista-cloudvision*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000251
sousaedu96abfc22021-02-18 14:57:01 +0100252
253#######################################################################################
254[testenv:dist_ro_sdn_dpb]
255deps = {[testenv]deps}
256 -r{toxinidir}/requirements-dist.txt
257skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000258whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100259changedir = {toxinidir}/RO-SDN-dpb
260commands =
261 sh -c 'rm -rf deb_dist dist osm_rosdn_dpb.egg-info osm_rosdn_dpb*.tar.gz'
262 python3 setup.py --command-packages=stdeb.command sdist_dsc
263 sh -c 'cd deb_dist/osm-rosdn-dpb*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000264
sousaedu96abfc22021-02-18 14:57:01 +0100265
266#######################################################################################
267[testenv:dist_ro_sdn_dynpac]
268deps = {[testenv]deps}
269 -r{toxinidir}/requirements-dist.txt
270skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000271whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100272changedir = {toxinidir}/RO-SDN-dynpac
273commands =
274 sh -c 'rm -rf deb_dist dist osm_rosdn_dynpac.egg-info osm_rosdn_dynpac*.tar.gz'
275 python3 setup.py --command-packages=stdeb.command sdist_dsc
276 sh -c 'cd deb_dist/osm-rosdn-dynpac*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000277
sousaedu96abfc22021-02-18 14:57:01 +0100278
279#######################################################################################
280[testenv:dist_ro_sdn_floodlight_of]
281deps = {[testenv]deps}
282 -r{toxinidir}/requirements-dist.txt
283skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000284whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100285changedir = {toxinidir}/RO-SDN-floodlight_openflow
286commands =
287 sh -c 'rm -rf deb_dist dist osm_rosdn_floodlightof.egg-info osm_rosdn_floodlightof*.tar.gz'
288 python3 setup.py --command-packages=stdeb.command sdist_dsc
289 sh -c 'cd deb_dist/osm-rosdn-floodlightof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000290
sousaedu96abfc22021-02-18 14:57:01 +0100291
292#######################################################################################
293[testenv:dist_ro_sdn_ietfl2vpn]
294deps = {[testenv]deps}
295 -r{toxinidir}/requirements-dist.txt
296skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000297whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100298changedir = {toxinidir}/RO-SDN-ietfl2vpn
299commands =
300 sh -c 'rm -rf deb_dist dist osm_rosdn_ietfl2vpn.egg-info osm_rosdn_ietfl2vpn*.tar.gz'
301 python3 setup.py --command-packages=stdeb.command sdist_dsc
302 sh -c 'cd deb_dist/osm-rosdn-ietfl2vpn*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000303
sousaedu96abfc22021-02-18 14:57:01 +0100304
305#######################################################################################
306[testenv:dist_ro_sdn_juniper_contrail]
307deps = {[testenv]deps}
308 -r{toxinidir}/requirements-dist.txt
309skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000310whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100311changedir = {toxinidir}/RO-SDN-juniper_contrail
312commands =
313 sh -c 'rm -rf deb_dist dist osm_rosdn_juniper_contrail.egg-info osm_rosdn_juniper_contrail*.tar.gz'
314 python3 setup.py --command-packages=stdeb.command sdist_dsc
315 sh -c 'cd deb_dist/osm-rosdn-juniper-contrail*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000316
sousaedu96abfc22021-02-18 14:57:01 +0100317
318#######################################################################################
319[testenv:dist_ro_sdn_odl_of]
320deps = {[testenv]deps}
321 -r{toxinidir}/requirements-dist.txt
322skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000323whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100324changedir = {toxinidir}/RO-SDN-odl_openflow
325commands =
326 sh -c 'rm -rf deb_dist dist osm_rosdn_odlof.egg-info osm_rosdn_odlof*.tar.gz'
327 python3 setup.py --command-packages=stdeb.command sdist_dsc
328 sh -c 'cd deb_dist/osm-rosdn-odlof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000329
sousaedu96abfc22021-02-18 14:57:01 +0100330
331#######################################################################################
332[testenv:dist_ro_sdn_onos_of]
333deps = {[testenv]deps}
334 -r{toxinidir}/requirements-dist.txt
335skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000336whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100337changedir = {toxinidir}/RO-SDN-onos_openflow
338commands =
339 sh -c 'rm -rf deb_dist dist osm_rosdn_onosof.egg-info osm_rosdn_onosof*.tar.gz'
340 python3 setup.py --command-packages=stdeb.command sdist_dsc
341 sh -c 'cd deb_dist/osm-rosdn-onosof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000342
sousaedu96abfc22021-02-18 14:57:01 +0100343
344#######################################################################################
345[testenv:dist_ro_sdn_onos_vpls]
346deps = {[testenv]deps}
347 -r{toxinidir}/requirements-dist.txt
348skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000349whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100350changedir = {toxinidir}/RO-SDN-onos_vpls
351commands =
352 sh -c 'rm -rf deb_dist dist osm_rosdn_onos_vpls.egg-info osm_rosdn_onos_vpls*.tar.gz'
353 python3 setup.py --command-packages=stdeb.command sdist_dsc
354 sh -c 'cd deb_dist/osm-rosdn-onos-vpls*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000355
sousaedu96abfc22021-02-18 14:57:01 +0100356
357#######################################################################################
358[testenv:dist_ro_vim_aws]
359deps = {[testenv]deps}
360 -r{toxinidir}/requirements-dist.txt
361skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000362whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100363changedir = {toxinidir}/RO-VIM-aws
364commands =
365 sh -c 'rm -rf deb_dist dist osm_rovim_aws.egg-info osm_rovim_aws*.tar.gz'
366 python3 setup.py --command-packages=stdeb.command sdist_dsc
367 sh -c 'cd deb_dist/osm-rovim-aws*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000368
sousaedu96abfc22021-02-18 14:57:01 +0100369
370#######################################################################################
371[testenv:dist_ro_vim_azure]
372deps = {[testenv]deps}
373 -r{toxinidir}/requirements-dist.txt
374skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000375whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100376changedir = {toxinidir}/RO-VIM-azure
377commands =
378 sh -c 'rm -rf deb_dist dist osm_rovim_azure.egg-info osm_rovim_azure*.tar.gz'
379 python3 setup.py --command-packages=stdeb.command sdist_dsc
380 sh -c 'cd deb_dist/osm-rovim-azure*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000381
sousaedu96abfc22021-02-18 14:57:01 +0100382
383#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100384[testenv:dist_ro_vim_openstack]
385deps = {[testenv]deps}
386 -r{toxinidir}/requirements-dist.txt
387skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000388whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100389changedir = {toxinidir}/RO-VIM-openstack
390commands =
391 sh -c 'rm -rf deb_dist dist osm_rovim_openstack.egg-info osm_rovim_openstack*.tar.gz'
392 python3 setup.py --command-packages=stdeb.command sdist_dsc
393 sh -c 'cd deb_dist/osm-rovim-openstack*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000394
sousaedu96abfc22021-02-18 14:57:01 +0100395
396#######################################################################################
397[testenv:dist_ro_vim_openvim]
398deps = {[testenv]deps}
399 -r{toxinidir}/requirements-dist.txt
400skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000401whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100402changedir = {toxinidir}/RO-VIM-openvim
403commands =
404 sh -c 'rm -rf deb_dist dist osm_rovim_openvim.egg-info osm_rovim_openvim*.tar.gz'
405 python3 setup.py --command-packages=stdeb.command sdist_dsc
406 sh -c 'cd deb_dist/osm-rovim-openvim*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000407
sousaedu96abfc22021-02-18 14:57:01 +0100408
409#######################################################################################
410[testenv:dist_ro_vim_vmware]
411deps = {[testenv]deps}
412 -r{toxinidir}/requirements-dist.txt
413skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000414whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100415changedir = {toxinidir}/RO-VIM-vmware
416commands =
417 sh -c 'rm -rf deb_dist dist osm_rovim_vmware.egg-info osm_rovim_vmware*.tar.gz'
418 python3 setup.py --command-packages=stdeb.command sdist_dsc
419 sh -c 'cd deb_dist/osm-rovim-vmware*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu0fe84cb2022-01-17 13:48:22 +0000420
sousaedu96abfc22021-02-18 14:57:01 +0100421
422#######################################################################################
gallardo34aa3a92021-10-08 11:50:00 +0000423[testenv:dist_ro_vim_gcp]
424deps = {[testenv]deps}
425 -r{toxinidir}/requirements-dist.txt
426skip_install = true
sousaedu0fe84cb2022-01-17 13:48:22 +0000427whitelist_externals = sh
gallardo34aa3a92021-10-08 11:50:00 +0000428changedir = {toxinidir}/RO-VIM-gcp
429commands =
430 sh -c 'rm -rf deb_dist dist osm_rovim_gcp.egg-info osm_rovim_gcp*.tar.gz'
431 python3 setup.py --command-packages=stdeb.command sdist_dsc
432 sh -c 'cd deb_dist/osm-rovim-gcp*/ && dpkg-buildpackage -rfakeroot -uc -us'
gallardo34aa3a92021-10-08 11:50:00 +0000433
434
435#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100436[flake8]
437ignore =
438 W291,
439 W293,
440 W503,
441 W605,
442 E123,
443 E125,
444 E203,
445 E226,
446 E241
447exclude =
448 .git,
449 __pycache__,
450 .tox,
451max-line-length = 120
452show-source = True
453builtins = _
sousaedu0fe84cb2022-01-17 13:48:22 +0000454import-order-style = google