blob: 4e4985b777620fdc05c17995c25066c9d71373b6 [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]
sousaedu9ca53b62021-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
37commands =
38 reno new {posargs:new_feature}
39
40
41#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +010042[testenv:black]
43deps = black
44skip_install = true
45commands =
sousaedu89278b82021-11-19 01:01:32 +000046 black --check --diff NG-RO
47 black --check --diff RO-plugin
48 black --check --diff RO-SDN-arista_cloudvision
49 black --check --diff RO-SDN-dpb
50 black --check --diff RO-SDN-dynpac
51 black --check --diff RO-SDN-floodlight_openflow
52 black --check --diff RO-SDN-ietfl2vpn
53 black --check --diff RO-SDN-juniper_contrail
54 black --check --diff RO-SDN-odl_openflow
55 black --check --diff RO-SDN-onos_openflow
56 black --check --diff RO-SDN-onos_vpls
57 black --check --diff RO-VIM-aws
58 black --check --diff RO-VIM-azure
59 black --check --diff RO-VIM-fos
sousaedu89278b82021-11-19 01:01:32 +000060 black --check --diff RO-VIM-openstack
61 black --check --diff RO-VIM-openvim
62 black --check --diff RO-VIM-vmware
63 black --check --diff RO-VIM-gcp
64 black --check --diff integration-tests
sousaedu96abfc22021-02-18 14:57:01 +010065
66
67#######################################################################################
68[testenv:cover]
69deps = {[testenv]deps}
70 -r{toxinidir}/requirements-dev.txt
71 -r{toxinidir}/requirements-test.txt
72skip_install = true
sousaedu89278b82021-11-19 01:01:32 +000073whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +010074commands =
75 sh -c 'rm -f nosetests.xml'
76 coverage erase
77 # NG-RO
sousaedu89278b82021-11-19 01:01:32 +000078 nose2 -C --coverage NG-RO/osm_ng_ro -s NG-RO/osm_ng_ro
sousaedu96abfc22021-02-18 14:57:01 +010079 sh -c 'mv .coverage .coverage_ng_ro'
80 # RO-plugin
sousaedu89278b82021-11-19 01:01:32 +000081 nose2 -C --coverage RO-plugin/osm_ro_plugin -s RO-plugin/osm_ro_plugin
sousaedu96abfc22021-02-18 14:57:01 +010082 sh -c 'mv .coverage .coverage_ro_plugin'
83 # RO-SDN-arista_cloudvision
sousaedu89278b82021-11-19 01:01:32 +000084 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 +010085 sh -c 'mv .coverage .coverage_rosdn_arista_cloudvision'
86 # RO-SDN-dpb
sousaedu89278b82021-11-19 01:01:32 +000087 nose2 -C --coverage RO-SDN-dpb/osm_rosdn_dpb -s RO-SDN-dpb/osm_rosdn_dpb
sousaedu96abfc22021-02-18 14:57:01 +010088 sh -c 'mv .coverage .coverage_rosdn_dpb'
89 # RO-SDN-dynpac
sousaedu89278b82021-11-19 01:01:32 +000090 nose2 -C --coverage RO-SDN-dynpac/osm_rosdn_dynpac -s RO-SDN-dynpac/osm_rosdn_dynpac
sousaedu96abfc22021-02-18 14:57:01 +010091 sh -c 'mv .coverage .coverage_rosdn_dynpac'
92 # RO-SDN-floodlight_openflow
sousaedu89278b82021-11-19 01:01:32 +000093 nose2 -C --coverage RO-SDN-floodlight_openflow/osm_rosdn_floodlightof -s RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
sousaedu96abfc22021-02-18 14:57:01 +010094 sh -c 'mv .coverage .coverage_rosdn_floodlightof'
95 # RO-SDN-ietfl2vpn
sousaedu89278b82021-11-19 01:01:32 +000096 nose2 -C --coverage RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn -s RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
sousaedu96abfc22021-02-18 14:57:01 +010097 sh -c 'mv .coverage .coverage_rosdn_ietfl2vpn'
98 # RO-SDN-juniper_contrail
sousaedu89278b82021-11-19 01:01:32 +000099 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 +0100100 sh -c 'mv .coverage .coverage_rosdn_juniper_contrail'
101 # RO-SDN-odl_openflow
sousaedu89278b82021-11-19 01:01:32 +0000102 nose2 -C --coverage RO-SDN-odl_openflow/osm_rosdn_odlof -s RO-SDN-odl_openflow/osm_rosdn_odlof
sousaedu96abfc22021-02-18 14:57:01 +0100103 sh -c 'mv .coverage .coverage_rosdn_odlof'
104 # RO-SDN-onos_openflow
sousaedu89278b82021-11-19 01:01:32 +0000105 nose2 -C --coverage RO-SDN-onos_openflow/osm_rosdn_onosof -s RO-SDN-onos_openflow/osm_rosdn_onosof
sousaedu96abfc22021-02-18 14:57:01 +0100106 sh -c 'mv .coverage .coverage_rosdn_onosof'
107 # RO-SDN-onos_vpls
sousaedu89278b82021-11-19 01:01:32 +0000108 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 +0100109 sh -c 'mv .coverage .coverage_rosdn_onos_vpls'
110 # RO-VIM-aws
sousaedu89278b82021-11-19 01:01:32 +0000111 nose2 -C --coverage RO-VIM-aws/osm_rovim_aws -s RO-VIM-aws/osm_rovim_aws
sousaedu96abfc22021-02-18 14:57:01 +0100112 sh -c 'mv .coverage .coverage_rovim_aws'
113 # RO-VIM-azure
sousaedu89278b82021-11-19 01:01:32 +0000114 nose2 -C --coverage RO-VIM-azure/osm_rovim_azure -s RO-VIM-azure/osm_rovim_azure
sousaedu96abfc22021-02-18 14:57:01 +0100115 sh -c 'mv .coverage .coverage_rovim_azure'
116 # RO-VIM-fos
sousaedu89278b82021-11-19 01:01:32 +0000117 nose2 -C --coverage RO-VIM-fos/osm_rovim_fos -s RO-VIM-fos/osm_rovim_fos
sousaedu96abfc22021-02-18 14:57:01 +0100118 sh -c 'mv .coverage .coverage_rovim_fos'
sousaedu96abfc22021-02-18 14:57:01 +0100119 # RO-VIM-openstack
sousaedu89278b82021-11-19 01:01:32 +0000120 # nose2 -C --coverage RO-VIM-openstack/osm_rovim_openstack -s RO-VIM-openstack/osm_rovim_openstack
121 # sh -c 'mv .coverage .coverage_rovim_openstack'
sousaedu96abfc22021-02-18 14:57:01 +0100122 # RO-VIM-openvim
sousaedu89278b82021-11-19 01:01:32 +0000123 nose2 -C --coverage RO-VIM-openvim/osm_rovim_openvim -s RO-VIM-openvim/osm_rovim_openvim
sousaedu96abfc22021-02-18 14:57:01 +0100124 sh -c 'mv .coverage .coverage_rovim_openvim'
125 # RO-VIM-vmware
sousaedu89278b82021-11-19 01:01:32 +0000126 # nose2 -C --coverage RO-VIM-vmware/osm_rovim_vmware -s RO-VIM-vmware/osm_rovim_vmware
127 # sh -c 'mv .coverage .coverage_rovim_vmware'
gallardo34aa3a92021-10-08 11:50:00 +0000128 # RO-VIM-gcp
sousaedu89278b82021-11-19 01:01:32 +0000129 nose2 -C --coverage RO-VIM-gcp/osm_rovim_gcp -s RO-VIM-gcp/osm_rovim_gcp
gallardo34aa3a92021-10-08 11:50:00 +0000130 sh -c 'mv .coverage .coverage_rovim_gcp'
sousaedu96abfc22021-02-18 14:57:01 +0100131 # Combine results and generate reports
almagia65de52b2021-12-01 09:52:30 +0100132 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_fos .coverage_rovim_openvim .coverage_rovim_gcp # .coverage_rovim_openstack .coverage_rovim_vmware
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]
140deps = flake8
141skip_install = true
142commands =
143 - 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-fos/osm_rovim_fos/ RO-VIM-fos/setup.py
sousaedu96abfc22021-02-18 14:57:01 +0100157 - 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
gallardo34aa3a92021-10-08 11:50:00 +0000160 - flake8 RO-VIM-gcp/osm_rovim_gcp/ RO-VIM-gcp/setup.py
gallardo71e66112021-11-11 10:58:29 +0000161 - 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
185 - pylint -E RO-VIM-fos/osm_rovim_fos
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]
206deps = pip-tools==5.5.0
sousaedubecd0832021-04-08 00:16:18 +0200207skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000208whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100209commands =
sousaedubecd0832021-04-08 00:16:18 +0200210 - sh -c "for file in requirements*.in ; do pip-compile -rU --no-header $file ;\
211 out=`echo $file | sed 's/.in/.txt/'` ; \
212 sed -i -e '1 e head -16 tox.ini' $out ;\
213 done"
sousaedu96abfc22021-02-18 14:57:01 +0100214
215
216#######################################################################################
217[testenv:dist_ng_ro]
218deps = {[testenv]deps}
219 -r{toxinidir}/requirements-dist.txt
220skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000221whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100222changedir = {toxinidir}/NG-RO
223commands =
224 sh -c 'rm -rf osm_ng_ro/requirements.txt deb_dist dist osm_ng_ro.egg-info osm_ng_ro*.tar.gz'
225 sh -c 'cp ../requirements.txt osm_ng_ro/requirements.txt'
226 python3 setup.py --command-packages=stdeb.command sdist_dsc
227 sh -c 'cd deb_dist/osm-ng-ro*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000228
sousaedu96abfc22021-02-18 14:57:01 +0100229
230#######################################################################################
231[testenv:dist_ro_plugin]
232deps = {[testenv]deps}
233 -r{toxinidir}/requirements-dist.txt
234skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000235whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100236changedir = {toxinidir}/RO-plugin
237commands =
238 sh -c 'rm -rf deb_dist dist osm_ro_plugin.egg-info osm_ro_plugin*.tar.gz'
239 python3 setup.py --command-packages=stdeb.command sdist_dsc
240 sh -c 'cd deb_dist/osm-ro-plugin*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000241
sousaedu96abfc22021-02-18 14:57:01 +0100242
243#######################################################################################
244[testenv:dist_ro_sdn_arista_cloudvision]
245deps = {[testenv]deps}
246 -r{toxinidir}/requirements-dist.txt
247skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000248whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100249changedir = {toxinidir}/RO-SDN-arista_cloudvision
250commands =
251 sh -c 'rm -rf deb_dist dist osm_rosdn_arista_cloudvision.egg-info osm_rosdn_arista_cloudvision*.tar.gz'
252 python3 setup.py --command-packages=stdeb.command sdist_dsc
253 sh -c 'cd deb_dist/osm-rosdn-arista-cloudvision*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000254
sousaedu96abfc22021-02-18 14:57:01 +0100255
256#######################################################################################
257[testenv:dist_ro_sdn_dpb]
258deps = {[testenv]deps}
259 -r{toxinidir}/requirements-dist.txt
260skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000261whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100262changedir = {toxinidir}/RO-SDN-dpb
263commands =
264 sh -c 'rm -rf deb_dist dist osm_rosdn_dpb.egg-info osm_rosdn_dpb*.tar.gz'
265 python3 setup.py --command-packages=stdeb.command sdist_dsc
266 sh -c 'cd deb_dist/osm-rosdn-dpb*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000267
sousaedu96abfc22021-02-18 14:57:01 +0100268
269#######################################################################################
270[testenv:dist_ro_sdn_dynpac]
271deps = {[testenv]deps}
272 -r{toxinidir}/requirements-dist.txt
273skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000274whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100275changedir = {toxinidir}/RO-SDN-dynpac
276commands =
277 sh -c 'rm -rf deb_dist dist osm_rosdn_dynpac.egg-info osm_rosdn_dynpac*.tar.gz'
278 python3 setup.py --command-packages=stdeb.command sdist_dsc
279 sh -c 'cd deb_dist/osm-rosdn-dynpac*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000280
sousaedu96abfc22021-02-18 14:57:01 +0100281
282#######################################################################################
283[testenv:dist_ro_sdn_floodlight_of]
284deps = {[testenv]deps}
285 -r{toxinidir}/requirements-dist.txt
286skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000287whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100288changedir = {toxinidir}/RO-SDN-floodlight_openflow
289commands =
290 sh -c 'rm -rf deb_dist dist osm_rosdn_floodlightof.egg-info osm_rosdn_floodlightof*.tar.gz'
291 python3 setup.py --command-packages=stdeb.command sdist_dsc
292 sh -c 'cd deb_dist/osm-rosdn-floodlightof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000293
sousaedu96abfc22021-02-18 14:57:01 +0100294
295#######################################################################################
296[testenv:dist_ro_sdn_ietfl2vpn]
297deps = {[testenv]deps}
298 -r{toxinidir}/requirements-dist.txt
299skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000300whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100301changedir = {toxinidir}/RO-SDN-ietfl2vpn
302commands =
303 sh -c 'rm -rf deb_dist dist osm_rosdn_ietfl2vpn.egg-info osm_rosdn_ietfl2vpn*.tar.gz'
304 python3 setup.py --command-packages=stdeb.command sdist_dsc
305 sh -c 'cd deb_dist/osm-rosdn-ietfl2vpn*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000306
sousaedu96abfc22021-02-18 14:57:01 +0100307
308#######################################################################################
309[testenv:dist_ro_sdn_juniper_contrail]
310deps = {[testenv]deps}
311 -r{toxinidir}/requirements-dist.txt
312skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000313whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100314changedir = {toxinidir}/RO-SDN-juniper_contrail
315commands =
316 sh -c 'rm -rf deb_dist dist osm_rosdn_juniper_contrail.egg-info osm_rosdn_juniper_contrail*.tar.gz'
317 python3 setup.py --command-packages=stdeb.command sdist_dsc
318 sh -c 'cd deb_dist/osm-rosdn-juniper-contrail*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000319
sousaedu96abfc22021-02-18 14:57:01 +0100320
321#######################################################################################
322[testenv:dist_ro_sdn_odl_of]
323deps = {[testenv]deps}
324 -r{toxinidir}/requirements-dist.txt
325skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000326whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100327changedir = {toxinidir}/RO-SDN-odl_openflow
328commands =
329 sh -c 'rm -rf deb_dist dist osm_rosdn_odlof.egg-info osm_rosdn_odlof*.tar.gz'
330 python3 setup.py --command-packages=stdeb.command sdist_dsc
331 sh -c 'cd deb_dist/osm-rosdn-odlof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000332
sousaedu96abfc22021-02-18 14:57:01 +0100333
334#######################################################################################
335[testenv:dist_ro_sdn_onos_of]
336deps = {[testenv]deps}
337 -r{toxinidir}/requirements-dist.txt
338skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000339whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100340changedir = {toxinidir}/RO-SDN-onos_openflow
341commands =
342 sh -c 'rm -rf deb_dist dist osm_rosdn_onosof.egg-info osm_rosdn_onosof*.tar.gz'
343 python3 setup.py --command-packages=stdeb.command sdist_dsc
344 sh -c 'cd deb_dist/osm-rosdn-onosof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000345
sousaedu96abfc22021-02-18 14:57:01 +0100346
347#######################################################################################
348[testenv:dist_ro_sdn_onos_vpls]
349deps = {[testenv]deps}
350 -r{toxinidir}/requirements-dist.txt
351skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000352whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100353changedir = {toxinidir}/RO-SDN-onos_vpls
354commands =
355 sh -c 'rm -rf deb_dist dist osm_rosdn_onos_vpls.egg-info osm_rosdn_onos_vpls*.tar.gz'
356 python3 setup.py --command-packages=stdeb.command sdist_dsc
357 sh -c 'cd deb_dist/osm-rosdn-onos-vpls*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000358
sousaedu96abfc22021-02-18 14:57:01 +0100359
360#######################################################################################
361[testenv:dist_ro_vim_aws]
362deps = {[testenv]deps}
363 -r{toxinidir}/requirements-dist.txt
364skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000365whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100366changedir = {toxinidir}/RO-VIM-aws
367commands =
368 sh -c 'rm -rf deb_dist dist osm_rovim_aws.egg-info osm_rovim_aws*.tar.gz'
369 python3 setup.py --command-packages=stdeb.command sdist_dsc
370 sh -c 'cd deb_dist/osm-rovim-aws*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000371
sousaedu96abfc22021-02-18 14:57:01 +0100372
373#######################################################################################
374[testenv:dist_ro_vim_azure]
375deps = {[testenv]deps}
376 -r{toxinidir}/requirements-dist.txt
377skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000378whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100379changedir = {toxinidir}/RO-VIM-azure
380commands =
381 sh -c 'rm -rf deb_dist dist osm_rovim_azure.egg-info osm_rovim_azure*.tar.gz'
382 python3 setup.py --command-packages=stdeb.command sdist_dsc
383 sh -c 'cd deb_dist/osm-rovim-azure*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000384
sousaedu96abfc22021-02-18 14:57:01 +0100385
386#######################################################################################
387[testenv:dist_ro_vim_fos]
388deps = {[testenv]deps}
389 -r{toxinidir}/requirements-dist.txt
390skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000391whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100392changedir = {toxinidir}/RO-VIM-fos
393commands =
394 sh -c 'rm -rf deb_dist dist osm_rovim_fos.egg-info osm_rovim_fos*.tar.gz'
395 python3 setup.py --command-packages=stdeb.command sdist_dsc
396 sh -c 'cd deb_dist/osm-rovim-fos*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000397
sousaedu96abfc22021-02-18 14:57:01 +0100398
399#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100400[testenv:dist_ro_vim_openstack]
401deps = {[testenv]deps}
402 -r{toxinidir}/requirements-dist.txt
403skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000404whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100405changedir = {toxinidir}/RO-VIM-openstack
406commands =
407 sh -c 'rm -rf deb_dist dist osm_rovim_openstack.egg-info osm_rovim_openstack*.tar.gz'
408 python3 setup.py --command-packages=stdeb.command sdist_dsc
409 sh -c 'cd deb_dist/osm-rovim-openstack*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000410
sousaedu96abfc22021-02-18 14:57:01 +0100411
412#######################################################################################
413[testenv:dist_ro_vim_openvim]
414deps = {[testenv]deps}
415 -r{toxinidir}/requirements-dist.txt
416skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000417whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100418changedir = {toxinidir}/RO-VIM-openvim
419commands =
420 sh -c 'rm -rf deb_dist dist osm_rovim_openvim.egg-info osm_rovim_openvim*.tar.gz'
421 python3 setup.py --command-packages=stdeb.command sdist_dsc
422 sh -c 'cd deb_dist/osm-rovim-openvim*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000423
sousaedu96abfc22021-02-18 14:57:01 +0100424
425#######################################################################################
426[testenv:dist_ro_vim_vmware]
427deps = {[testenv]deps}
428 -r{toxinidir}/requirements-dist.txt
429skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000430whitelist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100431changedir = {toxinidir}/RO-VIM-vmware
432commands =
433 sh -c 'rm -rf deb_dist dist osm_rovim_vmware.egg-info osm_rovim_vmware*.tar.gz'
434 python3 setup.py --command-packages=stdeb.command sdist_dsc
435 sh -c 'cd deb_dist/osm-rovim-vmware*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000436
sousaedu96abfc22021-02-18 14:57:01 +0100437
438#######################################################################################
gallardo34aa3a92021-10-08 11:50:00 +0000439[testenv:dist_ro_vim_gcp]
440deps = {[testenv]deps}
441 -r{toxinidir}/requirements-dist.txt
442skip_install = true
sousaedu89278b82021-11-19 01:01:32 +0000443whitelist_externals = sh
gallardo34aa3a92021-10-08 11:50:00 +0000444changedir = {toxinidir}/RO-VIM-gcp
445commands =
446 sh -c 'rm -rf deb_dist dist osm_rovim_gcp.egg-info osm_rovim_gcp*.tar.gz'
447 python3 setup.py --command-packages=stdeb.command sdist_dsc
448 sh -c 'cd deb_dist/osm-rovim-gcp*/ && dpkg-buildpackage -rfakeroot -uc -us'
gallardo34aa3a92021-10-08 11:50:00 +0000449
450
451#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100452[flake8]
453ignore =
454 W291,
455 W293,
456 W503,
457 W605,
458 E123,
459 E125,
460 E203,
461 E226,
462 E241
463exclude =
464 .git,
465 __pycache__,
466 .tox,
467max-line-length = 120
468show-source = True
469builtins = _