blob: 44220840da579303c96cbb0a648073c59c0b77d7 [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]
Gulsum Atici2f995052022-11-23 16:06:40 +030019envlist = black, cover, flake8, pylint, safety
sousaedu96abfc22021-02-18 14:57:01 +010020
21[tox:jenkins]
22toxworkdir = /tmp/.tox
Mark Beierl437308b2022-07-14 09:41:20 -040023setenv = XDG_CACHE_HOME=/tmp/.cache
sousaedu96abfc22021-02-18 14:57:01 +010024
25[testenv]
26usedevelop = True
Gulsum Aticia264b7a2023-05-09 14:57:22 +030027basepython = python3.10
sousaedu96abfc22021-02-18 14:57:01 +010028setenv = 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
garciadeblas1c89c082023-04-18 15:06:30 +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]
46deps = black
47skip_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
gifrerenom0e517792023-04-18 16:38:42 +000060 black --check --diff RO-SDN-tapi
sousaedu89278b82021-11-19 01:01:32 +000061 black --check --diff RO-VIM-aws
62 black --check --diff RO-VIM-azure
sousaedu89278b82021-11-19 01:01:32 +000063 black --check --diff RO-VIM-openstack
64 black --check --diff RO-VIM-openvim
65 black --check --diff RO-VIM-vmware
66 black --check --diff RO-VIM-gcp
67 black --check --diff integration-tests
sousaedu96abfc22021-02-18 14:57:01 +010068
69
70#######################################################################################
71[testenv:cover]
72deps = {[testenv]deps}
73 -r{toxinidir}/requirements-dev.txt
74 -r{toxinidir}/requirements-test.txt
75skip_install = true
garciadeblas38220102023-02-13 17:48:32 +010076allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +010077commands =
78 sh -c 'rm -f nosetests.xml'
79 coverage erase
80 # NG-RO
sousaedu89278b82021-11-19 01:01:32 +000081 nose2 -C --coverage NG-RO/osm_ng_ro -s NG-RO/osm_ng_ro
sousaedu96abfc22021-02-18 14:57:01 +010082 sh -c 'mv .coverage .coverage_ng_ro'
83 # RO-plugin
aticig562623c2022-03-31 22:03:33 +030084 # nose2 -C --coverage RO-plugin/osm_ro_plugin -s RO-plugin/osm_ro_plugin
85 # sh -c 'mv .coverage .coverage_ro_plugin'
sousaedu96abfc22021-02-18 14:57:01 +010086 # RO-SDN-arista_cloudvision
aticig562623c2022-03-31 22:03:33 +030087 # nose2 -C --coverage RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision -s RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision
88 # sh -c 'mv .coverage .coverage_rosdn_arista_cloudvision'
sousaedu96abfc22021-02-18 14:57:01 +010089 # RO-SDN-dpb
aticig562623c2022-03-31 22:03:33 +030090 # nose2 -C --coverage RO-SDN-dpb/osm_rosdn_dpb -s RO-SDN-dpb/osm_rosdn_dpb
91 # sh -c 'mv .coverage .coverage_rosdn_dpb'
sousaedu96abfc22021-02-18 14:57:01 +010092 # RO-SDN-dynpac
aticig562623c2022-03-31 22:03:33 +030093 # nose2 -C --coverage RO-SDN-dynpac/osm_rosdn_dynpac -s RO-SDN-dynpac/osm_rosdn_dynpac
94 # sh -c 'mv .coverage .coverage_rosdn_dynpac'
sousaedu96abfc22021-02-18 14:57:01 +010095 # RO-SDN-floodlight_openflow
aticig562623c2022-03-31 22:03:33 +030096 # nose2 -C --coverage RO-SDN-floodlight_openflow/osm_rosdn_floodlightof -s RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
97 # sh -c 'mv .coverage .coverage_rosdn_floodlightof'
sousaedu96abfc22021-02-18 14:57:01 +010098 # RO-SDN-ietfl2vpn
aticig562623c2022-03-31 22:03:33 +030099 # nose2 -C --coverage RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn -s RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
100 # sh -c 'mv .coverage .coverage_rosdn_ietfl2vpn'
sousaedu96abfc22021-02-18 14:57:01 +0100101 # RO-SDN-juniper_contrail
aticig409d5af2022-07-29 14:27:16 +0300102 nose2 -C --coverage RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail -s RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
103 sh -c 'mv .coverage .coverage_rosdn_juniper_contrail'
sousaedu96abfc22021-02-18 14:57:01 +0100104 # RO-SDN-odl_openflow
aticig562623c2022-03-31 22:03:33 +0300105 # nose2 -C --coverage RO-SDN-odl_openflow/osm_rosdn_odlof -s RO-SDN-odl_openflow/osm_rosdn_odlof
106 # sh -c 'mv .coverage .coverage_rosdn_odlof'
sousaedu96abfc22021-02-18 14:57:01 +0100107 # RO-SDN-onos_openflow
aticig562623c2022-03-31 22:03:33 +0300108 # nose2 -C --coverage RO-SDN-onos_openflow/osm_rosdn_onosof -s RO-SDN-onos_openflow/osm_rosdn_onosof
109 # sh -c 'mv .coverage .coverage_rosdn_onosof'
sousaedu96abfc22021-02-18 14:57:01 +0100110 # RO-SDN-onos_vpls
aticig562623c2022-03-31 22:03:33 +0300111 # nose2 -C --coverage RO-SDN-onos_vpls/osm_rosdn_onos_vpls -s RO-SDN-onos_vpls/osm_rosdn_onos_vpls
112 # sh -c 'mv .coverage .coverage_rosdn_onos_vpls'
gifrerenom0e517792023-04-18 16:38:42 +0000113 # RO-SDN-tapi
114 nose2 -C --coverage RO-SDN-tapi/osm_rosdn_tapi -s RO-SDN-tapi/osm_rosdn_tapi
115 sh -c 'mv .coverage .coverage_rosdn_tapi'
sousaedu96abfc22021-02-18 14:57:01 +0100116 # RO-VIM-aws
aticig562623c2022-03-31 22:03:33 +0300117 # nose2 -C --coverage RO-VIM-aws/osm_rovim_aws -s RO-VIM-aws/osm_rovim_aws
118 # sh -c 'mv .coverage .coverage_rovim_aws'
sousaedu96abfc22021-02-18 14:57:01 +0100119 # RO-VIM-azure
aticig562623c2022-03-31 22:03:33 +0300120 # nose2 -C --coverage RO-VIM-azure/osm_rovim_azure -s RO-VIM-azure/osm_rovim_azure
121 # sh -c 'mv .coverage .coverage_rovim_azure'
sousaedu96abfc22021-02-18 14:57:01 +0100122 # RO-VIM-openstack
aticig562623c2022-03-31 22:03:33 +0300123 nose2 -C --coverage RO-VIM-openstack/osm_rovim_openstack -s RO-VIM-openstack/osm_rovim_openstack
124 sh -c 'mv .coverage .coverage_rovim_openstack'
sousaedu96abfc22021-02-18 14:57:01 +0100125 # RO-VIM-openvim
aticig562623c2022-03-31 22:03:33 +0300126 # nose2 -C --coverage RO-VIM-openvim/osm_rovim_openvim -s RO-VIM-openvim/osm_rovim_openvim
127 # sh -c 'mv .coverage .coverage_rovim_openvim'
sousaedu96abfc22021-02-18 14:57:01 +0100128 # RO-VIM-vmware
sousaedu89278b82021-11-19 01:01:32 +0000129 # nose2 -C --coverage RO-VIM-vmware/osm_rovim_vmware -s RO-VIM-vmware/osm_rovim_vmware
130 # sh -c 'mv .coverage .coverage_rovim_vmware'
gallardo34aa3a92021-10-08 11:50:00 +0000131 # RO-VIM-gcp
aticig562623c2022-03-31 22:03:33 +0300132 # nose2 -C --coverage RO-VIM-gcp/osm_rovim_gcp -s RO-VIM-gcp/osm_rovim_gcp
133 # sh -c 'mv .coverage .coverage_rovim_gcp'
sousaedu96abfc22021-02-18 14:57:01 +0100134 # Combine results and generate reports
gifrerenom0e517792023-04-18 16:38:42 +0000135 # 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_rosdn_tapi .coverage_rovim_aws .coverage_rovim_azure .coverage_rovim_openvim .coverage_rovim_gcp # .coverage_rovim_openstack .coverage_rovim_vmware
aticig409d5af2022-07-29 14:27:16 +0300136 coverage combine .coverage_ng_ro .coverage_rovim_openstack .coverage_rosdn_juniper_contrail
sousaedu96abfc22021-02-18 14:57:01 +0100137 coverage report --omit='*tests*'
138 coverage html -d ./cover --omit='*tests*'
139 coverage xml -o coverage.xml --omit='*tests*'
sousaedu96abfc22021-02-18 14:57:01 +0100140
141
142#######################################################################################
143[testenv:flake8]
sousaedu049cbb12022-01-05 11:39:35 +0000144deps =
Gulsum Aticie5e820d2022-11-24 17:49:04 +0300145 flake8==5.0.4
sousaedu049cbb12022-01-05 11:39:35 +0000146 flake8-import-order
sousaedu96abfc22021-02-18 14:57:01 +0100147skip_install = true
148commands =
sousaedu686720b2021-11-24 02:16:11 +0000149 flake8 NG-RO/osm_ng_ro/ NG-RO/setup.py
sousaedu049cbb12022-01-05 11:39:35 +0000150 flake8 RO-plugin/osm_ro_plugin/ RO-plugin/setup.py
151 flake8 RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision/ RO-SDN-arista_cloudvision/setup.py
152 flake8 RO-SDN-dpb/osm_rosdn_dpb/ RO-SDN-dpb/setup.py
153 flake8 RO-SDN-dynpac/osm_rosdn_dynpac/ RO-SDN-dynpac/setup.py
154 flake8 RO-SDN-floodlight_openflow/osm_rosdn_floodlightof/ RO-SDN-floodlight_openflow/setup.py
155 flake8 RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn/ RO-SDN-ietfl2vpn/setup.py
156 flake8 RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/ RO-SDN-juniper_contrail/setup.py
157 flake8 RO-SDN-odl_openflow/osm_rosdn_odlof/ RO-SDN-odl_openflow/setup.py
158 flake8 RO-SDN-onos_openflow/osm_rosdn_onosof/ RO-SDN-onos_openflow/setup.py
159 flake8 RO-SDN-onos_vpls/osm_rosdn_onos_vpls/ RO-SDN-onos_vpls/setup.py
gifrerenom0e517792023-04-18 16:38:42 +0000160 flake8 RO-SDN-tapi/osm_rosdn_tapi/ RO-SDN-tapi/setup.py
sousaedu049cbb12022-01-05 11:39:35 +0000161 flake8 RO-VIM-aws/osm_rovim_aws/ RO-VIM-aws/setup.py
162 flake8 RO-VIM-azure/osm_rovim_azure/ RO-VIM-azure/setup.py
163 flake8 RO-VIM-openstack/osm_rovim_openstack/ RO-VIM-openstack/setup.py
164 flake8 RO-VIM-openvim/osm_rovim_openvim/ RO-VIM-openvim/setup.py
165 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
166 flake8 RO-VIM-gcp/osm_rovim_gcp/ RO-VIM-gcp/setup.py
167 flake8 integration-tests/
sousaedu96abfc22021-02-18 14:57:01 +0100168
169
170#######################################################################################
171[testenv:pylint]
172deps = {[testenv]deps}
173 -r{toxinidir}/requirements-dev.txt
174 -r{toxinidir}/requirements-test.txt
175 pylint
176skip_install = true
177commands =
Gulsum Atici2f995052022-11-23 16:06:40 +0300178 pylint -E NG-RO/osm_ng_ro --disable=E1101
179 pylint -E RO-plugin/osm_ro_plugin --disable=E1101
180 pylint -E RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision --disable=all
181 pylint -E RO-SDN-dpb/osm_rosdn_dpb
182 pylint -E RO-SDN-dynpac/osm_rosdn_dynpac --disable=E1101
183 pylint -E RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
184 pylint -E RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn --disable=E1101
185 pylint -E RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
186 pylint -E RO-SDN-odl_openflow/osm_rosdn_odlof
187 pylint -E RO-SDN-onos_openflow/osm_rosdn_onosof
188 pylint -E RO-SDN-onos_vpls/osm_rosdn_onos_vpls --disable=E1101
gifrerenom0e517792023-04-18 16:38:42 +0000189 pylint -E RO-SDN-tapi/osm_rosdn_tapi
Gulsum Atici2f995052022-11-23 16:06:40 +0300190 pylint -E RO-VIM-aws/osm_rovim_aws
191 pylint -E RO-VIM-azure/osm_rovim_azure --disable=all
192 pylint -E RO-VIM-openstack/osm_rovim_openstack --disable=E1101
193 pylint -E RO-VIM-openvim/osm_rovim_openvim --disable=all
194 pylint -E RO-VIM-vmware/osm_rovim_vmware --disable=all
195 pylint -E RO-VIM-gcp/osm_rovim_gcp --disable=E1101
sousaedu96abfc22021-02-18 14:57:01 +0100196
197
198#######################################################################################
199[testenv:safety]
200setenv =
201 LC_ALL=C.UTF-8
202 LANG=C.UTF-8
203deps = {[testenv]deps}
204 safety
205skip_install = true
206commands =
207 - safety check --full-report
208
209
210#######################################################################################
211[testenv:pip-compile]
garciadeblasf698ad22022-06-24 17:37:49 +0200212deps = pip-tools==6.6.2
sousaedubecd0832021-04-08 00:16:18 +0200213skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200214allowlist_externals = bash
beierlm83483932022-01-13 13:21:53 -0500215 [
sousaedu96abfc22021-02-18 14:57:01 +0100216commands =
beierlm83483932022-01-13 13:21:53 -0500217 - bash -c "for file in requirements*.in ; do \
218 UNSAFE="" ; \
219 if [[ $file =~ 'dist' ]] ; then UNSAFE='--allow-unsafe' ; fi ; \
220 pip-compile -rU --no-header $UNSAFE $file ;\
sousaedubecd0832021-04-08 00:16:18 +0200221 out=`echo $file | sed 's/.in/.txt/'` ; \
222 sed -i -e '1 e head -16 tox.ini' $out ;\
223 done"
beierlm83483932022-01-13 13:21:53 -0500224 - bash -c "sed -i 's/.*RO-plugin/-e RO-plugin/g' requirements-test.txt"
sousaedu96abfc22021-02-18 14:57:01 +0100225
226
227#######################################################################################
228[testenv:dist_ng_ro]
229deps = {[testenv]deps}
230 -r{toxinidir}/requirements-dist.txt
231skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200232allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100233changedir = {toxinidir}/NG-RO
234commands =
235 sh -c 'rm -rf osm_ng_ro/requirements.txt deb_dist dist osm_ng_ro.egg-info osm_ng_ro*.tar.gz'
236 sh -c 'cp ../requirements.txt osm_ng_ro/requirements.txt'
237 python3 setup.py --command-packages=stdeb.command sdist_dsc
238 sh -c 'cd deb_dist/osm-ng-ro*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000239
sousaedu96abfc22021-02-18 14:57:01 +0100240
241#######################################################################################
242[testenv:dist_ro_plugin]
243deps = {[testenv]deps}
244 -r{toxinidir}/requirements-dist.txt
245skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200246allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100247changedir = {toxinidir}/RO-plugin
248commands =
249 sh -c 'rm -rf deb_dist dist osm_ro_plugin.egg-info osm_ro_plugin*.tar.gz'
250 python3 setup.py --command-packages=stdeb.command sdist_dsc
251 sh -c 'cd deb_dist/osm-ro-plugin*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000252
sousaedu96abfc22021-02-18 14:57:01 +0100253
254#######################################################################################
255[testenv:dist_ro_sdn_arista_cloudvision]
256deps = {[testenv]deps}
257 -r{toxinidir}/requirements-dist.txt
258skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200259allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100260changedir = {toxinidir}/RO-SDN-arista_cloudvision
261commands =
262 sh -c 'rm -rf deb_dist dist osm_rosdn_arista_cloudvision.egg-info osm_rosdn_arista_cloudvision*.tar.gz'
263 python3 setup.py --command-packages=stdeb.command sdist_dsc
264 sh -c 'cd deb_dist/osm-rosdn-arista-cloudvision*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000265
sousaedu96abfc22021-02-18 14:57:01 +0100266
267#######################################################################################
268[testenv:dist_ro_sdn_dpb]
269deps = {[testenv]deps}
270 -r{toxinidir}/requirements-dist.txt
271skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200272allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100273changedir = {toxinidir}/RO-SDN-dpb
274commands =
275 sh -c 'rm -rf deb_dist dist osm_rosdn_dpb.egg-info osm_rosdn_dpb*.tar.gz'
276 python3 setup.py --command-packages=stdeb.command sdist_dsc
277 sh -c 'cd deb_dist/osm-rosdn-dpb*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000278
sousaedu96abfc22021-02-18 14:57:01 +0100279
280#######################################################################################
281[testenv:dist_ro_sdn_dynpac]
282deps = {[testenv]deps}
283 -r{toxinidir}/requirements-dist.txt
284skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200285allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100286changedir = {toxinidir}/RO-SDN-dynpac
287commands =
288 sh -c 'rm -rf deb_dist dist osm_rosdn_dynpac.egg-info osm_rosdn_dynpac*.tar.gz'
289 python3 setup.py --command-packages=stdeb.command sdist_dsc
290 sh -c 'cd deb_dist/osm-rosdn-dynpac*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000291
sousaedu96abfc22021-02-18 14:57:01 +0100292
293#######################################################################################
294[testenv:dist_ro_sdn_floodlight_of]
295deps = {[testenv]deps}
296 -r{toxinidir}/requirements-dist.txt
297skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200298allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100299changedir = {toxinidir}/RO-SDN-floodlight_openflow
300commands =
301 sh -c 'rm -rf deb_dist dist osm_rosdn_floodlightof.egg-info osm_rosdn_floodlightof*.tar.gz'
302 python3 setup.py --command-packages=stdeb.command sdist_dsc
303 sh -c 'cd deb_dist/osm-rosdn-floodlightof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000304
sousaedu96abfc22021-02-18 14:57:01 +0100305
306#######################################################################################
307[testenv:dist_ro_sdn_ietfl2vpn]
308deps = {[testenv]deps}
309 -r{toxinidir}/requirements-dist.txt
310skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200311allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100312changedir = {toxinidir}/RO-SDN-ietfl2vpn
313commands =
314 sh -c 'rm -rf deb_dist dist osm_rosdn_ietfl2vpn.egg-info osm_rosdn_ietfl2vpn*.tar.gz'
315 python3 setup.py --command-packages=stdeb.command sdist_dsc
316 sh -c 'cd deb_dist/osm-rosdn-ietfl2vpn*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000317
sousaedu96abfc22021-02-18 14:57:01 +0100318
319#######################################################################################
320[testenv:dist_ro_sdn_juniper_contrail]
321deps = {[testenv]deps}
322 -r{toxinidir}/requirements-dist.txt
323skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200324allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100325changedir = {toxinidir}/RO-SDN-juniper_contrail
326commands =
327 sh -c 'rm -rf deb_dist dist osm_rosdn_juniper_contrail.egg-info osm_rosdn_juniper_contrail*.tar.gz'
328 python3 setup.py --command-packages=stdeb.command sdist_dsc
329 sh -c 'cd deb_dist/osm-rosdn-juniper-contrail*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000330
sousaedu96abfc22021-02-18 14:57:01 +0100331
332#######################################################################################
333[testenv:dist_ro_sdn_odl_of]
334deps = {[testenv]deps}
335 -r{toxinidir}/requirements-dist.txt
336skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200337allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100338changedir = {toxinidir}/RO-SDN-odl_openflow
339commands =
340 sh -c 'rm -rf deb_dist dist osm_rosdn_odlof.egg-info osm_rosdn_odlof*.tar.gz'
341 python3 setup.py --command-packages=stdeb.command sdist_dsc
342 sh -c 'cd deb_dist/osm-rosdn-odlof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000343
sousaedu96abfc22021-02-18 14:57:01 +0100344
345#######################################################################################
346[testenv:dist_ro_sdn_onos_of]
347deps = {[testenv]deps}
348 -r{toxinidir}/requirements-dist.txt
349skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200350allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100351changedir = {toxinidir}/RO-SDN-onos_openflow
352commands =
353 sh -c 'rm -rf deb_dist dist osm_rosdn_onosof.egg-info osm_rosdn_onosof*.tar.gz'
354 python3 setup.py --command-packages=stdeb.command sdist_dsc
355 sh -c 'cd deb_dist/osm-rosdn-onosof*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000356
sousaedu96abfc22021-02-18 14:57:01 +0100357
358#######################################################################################
359[testenv:dist_ro_sdn_onos_vpls]
360deps = {[testenv]deps}
361 -r{toxinidir}/requirements-dist.txt
362skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200363allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100364changedir = {toxinidir}/RO-SDN-onos_vpls
365commands =
366 sh -c 'rm -rf deb_dist dist osm_rosdn_onos_vpls.egg-info osm_rosdn_onos_vpls*.tar.gz'
367 python3 setup.py --command-packages=stdeb.command sdist_dsc
368 sh -c 'cd deb_dist/osm-rosdn-onos-vpls*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000369
sousaedu96abfc22021-02-18 14:57:01 +0100370
371#######################################################################################
gifrerenom0e517792023-04-18 16:38:42 +0000372[testenv:dist_ro_sdn_tapi]
373deps = {[testenv]deps}
374 -r{toxinidir}/requirements-dist.txt
375skip_install = true
376whitelist_externals = sh
377changedir = {toxinidir}/RO-SDN-tapi
378commands =
379 sh -c 'rm -rf deb_dist dist osm_rosdn_tapi.egg-info osm_rosdn_tapi*.tar.gz'
380 python3 setup.py --command-packages=stdeb.command sdist_dsc
381 sh -c 'cd deb_dist/osm-rosdn-tapi*/ && dpkg-buildpackage -rfakeroot -uc -us'
382
383
384#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100385[testenv:dist_ro_vim_aws]
386deps = {[testenv]deps}
387 -r{toxinidir}/requirements-dist.txt
388skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200389allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100390changedir = {toxinidir}/RO-VIM-aws
391commands =
392 sh -c 'rm -rf deb_dist dist osm_rovim_aws.egg-info osm_rovim_aws*.tar.gz'
393 python3 setup.py --command-packages=stdeb.command sdist_dsc
394 sh -c 'cd deb_dist/osm-rovim-aws*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000395
sousaedu96abfc22021-02-18 14:57:01 +0100396
397#######################################################################################
398[testenv:dist_ro_vim_azure]
399deps = {[testenv]deps}
400 -r{toxinidir}/requirements-dist.txt
401skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200402allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100403changedir = {toxinidir}/RO-VIM-azure
404commands =
405 sh -c 'rm -rf deb_dist dist osm_rovim_azure.egg-info osm_rovim_azure*.tar.gz'
406 python3 setup.py --command-packages=stdeb.command sdist_dsc
407 sh -c 'cd deb_dist/osm-rovim-azure*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000408
sousaedu96abfc22021-02-18 14:57:01 +0100409
410#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100411[testenv:dist_ro_vim_openstack]
412deps = {[testenv]deps}
413 -r{toxinidir}/requirements-dist.txt
414skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200415allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100416changedir = {toxinidir}/RO-VIM-openstack
417commands =
418 sh -c 'rm -rf deb_dist dist osm_rovim_openstack.egg-info osm_rovim_openstack*.tar.gz'
419 python3 setup.py --command-packages=stdeb.command sdist_dsc
420 sh -c 'cd deb_dist/osm-rovim-openstack*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000421
sousaedu96abfc22021-02-18 14:57:01 +0100422
423#######################################################################################
424[testenv:dist_ro_vim_openvim]
425deps = {[testenv]deps}
426 -r{toxinidir}/requirements-dist.txt
427skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200428allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100429changedir = {toxinidir}/RO-VIM-openvim
430commands =
431 sh -c 'rm -rf deb_dist dist osm_rovim_openvim.egg-info osm_rovim_openvim*.tar.gz'
432 python3 setup.py --command-packages=stdeb.command sdist_dsc
433 sh -c 'cd deb_dist/osm-rovim-openvim*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000434
sousaedu96abfc22021-02-18 14:57:01 +0100435
436#######################################################################################
437[testenv:dist_ro_vim_vmware]
438deps = {[testenv]deps}
439 -r{toxinidir}/requirements-dist.txt
440skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200441allowlist_externals = sh
sousaedu96abfc22021-02-18 14:57:01 +0100442changedir = {toxinidir}/RO-VIM-vmware
443commands =
444 sh -c 'rm -rf deb_dist dist osm_rovim_vmware.egg-info osm_rovim_vmware*.tar.gz'
445 python3 setup.py --command-packages=stdeb.command sdist_dsc
446 sh -c 'cd deb_dist/osm-rovim-vmware*/ && dpkg-buildpackage -rfakeroot -uc -us'
sousaedu89278b82021-11-19 01:01:32 +0000447
sousaedu96abfc22021-02-18 14:57:01 +0100448
449#######################################################################################
gallardo34aa3a92021-10-08 11:50:00 +0000450[testenv:dist_ro_vim_gcp]
451deps = {[testenv]deps}
452 -r{toxinidir}/requirements-dist.txt
453skip_install = true
garciadeblas1c89c082023-04-18 15:06:30 +0200454allowlist_externals = sh
gallardo34aa3a92021-10-08 11:50:00 +0000455changedir = {toxinidir}/RO-VIM-gcp
456commands =
457 sh -c 'rm -rf deb_dist dist osm_rovim_gcp.egg-info osm_rovim_gcp*.tar.gz'
458 python3 setup.py --command-packages=stdeb.command sdist_dsc
459 sh -c 'cd deb_dist/osm-rovim-gcp*/ && dpkg-buildpackage -rfakeroot -uc -us'
gallardo34aa3a92021-10-08 11:50:00 +0000460
461
462#######################################################################################
sousaedu96abfc22021-02-18 14:57:01 +0100463[flake8]
464ignore =
465 W291,
466 W293,
467 W503,
468 W605,
469 E123,
470 E125,
471 E203,
472 E226,
aticig7b521f72022-07-15 00:43:09 +0300473 E241,
474 E501,
sousaedu96abfc22021-02-18 14:57:01 +0100475exclude =
476 .git,
477 __pycache__,
478 .tox,
479max-line-length = 120
480show-source = True
481builtins = _
sousaedu049cbb12022-01-05 11:39:35 +0000482import-order-style = google