| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 1 | ####################################################################################### |
| 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] |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 19 | envlist = black, flake8, safety, cover |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 20 | |
| 21 | [tox:jenkins] |
| 22 | toxworkdir = /tmp/.tox |
| 23 | |
| 24 | [testenv] |
| 25 | usedevelop = True |
| 26 | basepython = python3 |
| 27 | setenv = VIRTUAL_ENV={envdir} |
| 28 | PYTHONDONTWRITEBYTECODE = 1 |
| 29 | deps = -r{toxinidir}/requirements.txt |
| 30 | parallel_show_output = true |
| 31 | |
| 32 | |
| 33 | ####################################################################################### |
| sousaedu | 1077bbd | 2021-04-15 01:18:59 +0200 | [diff] [blame] | 34 | [testenv:release_notes] |
| 35 | deps = reno |
| 36 | skip_install = true |
| sousaedu | be0a838 | 2022-01-25 14:11:04 +0000 | [diff] [blame] | 37 | whitelist_externals = bash |
| sousaedu | 1077bbd | 2021-04-15 01:18:59 +0200 | [diff] [blame] | 38 | commands = |
| 39 | reno new {posargs:new_feature} |
| sousaedu | be0a838 | 2022-01-25 14:11:04 +0000 | [diff] [blame] | 40 | bash -c "sed -i -e '1 e head -16 tox.ini' releasenotes/notes/{posargs:new_feature}*.yaml" |
| sousaedu | 1077bbd | 2021-04-15 01:18:59 +0200 | [diff] [blame] | 41 | |
| 42 | |
| 43 | ####################################################################################### |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 44 | [testenv:black] |
| 45 | deps = black |
| 46 | skip_install = true |
| 47 | commands = |
| sousaedu | 9750841 | 2021-11-29 09:28:15 +0000 | [diff] [blame] | 48 | 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 |
| sousaedu | 9750841 | 2021-11-29 09:28:15 +0000 | [diff] [blame] | 61 | 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 |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 66 | |
| 67 | |
| 68 | ####################################################################################### |
| 69 | [testenv:cover] |
| 70 | deps = {[testenv]deps} |
| 71 | -r{toxinidir}/requirements-dev.txt |
| 72 | -r{toxinidir}/requirements-test.txt |
| 73 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 74 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 75 | commands = |
| 76 | sh -c 'rm -f nosetests.xml' |
| 77 | coverage erase |
| 78 | # NG-RO |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 79 | nose2 -C --coverage NG-RO/osm_ng_ro -s NG-RO/osm_ng_ro |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 80 | sh -c 'mv .coverage .coverage_ng_ro' |
| 81 | # RO-plugin |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 82 | # nose2 -C --coverage RO-plugin/osm_ro_plugin -s RO-plugin/osm_ro_plugin |
| 83 | # sh -c 'mv .coverage .coverage_ro_plugin' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 84 | # RO-SDN-arista_cloudvision |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 85 | # nose2 -C --coverage RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision -s RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision |
| 86 | # sh -c 'mv .coverage .coverage_rosdn_arista_cloudvision' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 87 | # RO-SDN-dpb |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 88 | # nose2 -C --coverage RO-SDN-dpb/osm_rosdn_dpb -s RO-SDN-dpb/osm_rosdn_dpb |
| 89 | # sh -c 'mv .coverage .coverage_rosdn_dpb' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 90 | # RO-SDN-dynpac |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 91 | # nose2 -C --coverage RO-SDN-dynpac/osm_rosdn_dynpac -s RO-SDN-dynpac/osm_rosdn_dynpac |
| 92 | # sh -c 'mv .coverage .coverage_rosdn_dynpac' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 93 | # RO-SDN-floodlight_openflow |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 94 | # nose2 -C --coverage RO-SDN-floodlight_openflow/osm_rosdn_floodlightof -s RO-SDN-floodlight_openflow/osm_rosdn_floodlightof |
| 95 | # sh -c 'mv .coverage .coverage_rosdn_floodlightof' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 96 | # RO-SDN-ietfl2vpn |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 97 | # nose2 -C --coverage RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn -s RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn |
| 98 | # sh -c 'mv .coverage .coverage_rosdn_ietfl2vpn' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 99 | # RO-SDN-juniper_contrail |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 100 | # nose2 -C --coverage RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail -s RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail |
| 101 | # sh -c 'mv .coverage .coverage_rosdn_juniper_contrail' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 102 | # RO-SDN-odl_openflow |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 103 | # nose2 -C --coverage RO-SDN-odl_openflow/osm_rosdn_odlof -s RO-SDN-odl_openflow/osm_rosdn_odlof |
| 104 | # sh -c 'mv .coverage .coverage_rosdn_odlof' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 105 | # RO-SDN-onos_openflow |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 106 | # nose2 -C --coverage RO-SDN-onos_openflow/osm_rosdn_onosof -s RO-SDN-onos_openflow/osm_rosdn_onosof |
| 107 | # sh -c 'mv .coverage .coverage_rosdn_onosof' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 108 | # RO-SDN-onos_vpls |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 109 | # nose2 -C --coverage RO-SDN-onos_vpls/osm_rosdn_onos_vpls -s RO-SDN-onos_vpls/osm_rosdn_onos_vpls |
| 110 | # sh -c 'mv .coverage .coverage_rosdn_onos_vpls' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 111 | # RO-VIM-aws |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 112 | # nose2 -C --coverage RO-VIM-aws/osm_rovim_aws -s RO-VIM-aws/osm_rovim_aws |
| 113 | # sh -c 'mv .coverage .coverage_rovim_aws' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 114 | # RO-VIM-azure |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 115 | # nose2 -C --coverage RO-VIM-azure/osm_rovim_azure -s RO-VIM-azure/osm_rovim_azure |
| 116 | # sh -c 'mv .coverage .coverage_rovim_azure' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 117 | # RO-VIM-openstack |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 118 | nose2 -C --coverage RO-VIM-openstack/osm_rovim_openstack -s RO-VIM-openstack/osm_rovim_openstack |
| 119 | sh -c 'mv .coverage .coverage_rovim_openstack' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 120 | # RO-VIM-openvim |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 121 | # nose2 -C --coverage RO-VIM-openvim/osm_rovim_openvim -s RO-VIM-openvim/osm_rovim_openvim |
| 122 | # sh -c 'mv .coverage .coverage_rovim_openvim' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 123 | # RO-VIM-vmware |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 124 | # nose2 -C --coverage RO-VIM-vmware/osm_rovim_vmware -s RO-VIM-vmware/osm_rovim_vmware |
| 125 | # sh -c 'mv .coverage .coverage_rovim_vmware' |
| gallardo | 34aa3a9 | 2021-10-08 11:50:00 +0000 | [diff] [blame] | 126 | # RO-VIM-gcp |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 127 | # nose2 -C --coverage RO-VIM-gcp/osm_rovim_gcp -s RO-VIM-gcp/osm_rovim_gcp |
| 128 | # sh -c 'mv .coverage .coverage_rovim_gcp' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 129 | # Combine results and generate reports |
| aticig | 72c6714 | 2022-03-31 22:03:33 +0300 | [diff] [blame] | 130 | # 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 |
| 131 | coverage combine .coverage_ng_ro .coverage_rovim_openstack |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 132 | coverage report --omit='*tests*' |
| 133 | coverage html -d ./cover --omit='*tests*' |
| 134 | coverage xml -o coverage.xml --omit='*tests*' |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 135 | |
| 136 | ####################################################################################### |
| 137 | [testenv:flake8] |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 138 | deps = flake8 |
| 139 | flake8-import-order |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 140 | skip_install = true |
| 141 | commands = |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 142 | flake8 NG-RO/osm_ng_ro/ NG-RO/setup.py |
| 143 | flake8 RO-plugin/osm_ro_plugin/ RO-plugin/setup.py |
| 144 | flake8 RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision/ RO-SDN-arista_cloudvision/setup.py |
| 145 | flake8 RO-SDN-dpb/osm_rosdn_dpb/ RO-SDN-dpb/setup.py |
| 146 | flake8 RO-SDN-dynpac/osm_rosdn_dynpac/ RO-SDN-dynpac/setup.py |
| 147 | flake8 RO-SDN-floodlight_openflow/osm_rosdn_floodlightof/ RO-SDN-floodlight_openflow/setup.py |
| 148 | flake8 RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn/ RO-SDN-ietfl2vpn/setup.py |
| 149 | flake8 RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/ RO-SDN-juniper_contrail/setup.py |
| 150 | flake8 RO-SDN-odl_openflow/osm_rosdn_odlof/ RO-SDN-odl_openflow/setup.py |
| 151 | flake8 RO-SDN-onos_openflow/osm_rosdn_onosof/ RO-SDN-onos_openflow/setup.py |
| 152 | flake8 RO-SDN-onos_vpls/osm_rosdn_onos_vpls/ RO-SDN-onos_vpls/setup.py |
| 153 | flake8 RO-VIM-aws/osm_rovim_aws/ RO-VIM-aws/setup.py |
| 154 | flake8 RO-VIM-azure/osm_rovim_azure/ RO-VIM-azure/setup.py |
| 155 | flake8 RO-VIM-openstack/osm_rovim_openstack/ RO-VIM-openstack/setup.py |
| 156 | flake8 RO-VIM-openvim/osm_rovim_openvim/ RO-VIM-openvim/setup.py |
| 157 | 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 |
| 158 | flake8 RO-VIM-gcp/osm_rovim_gcp/ RO-VIM-gcp/setup.py |
| 159 | flake8 integration-tests/ |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 160 | |
| 161 | |
| 162 | ####################################################################################### |
| 163 | [testenv:pylint] |
| 164 | deps = {[testenv]deps} |
| 165 | -r{toxinidir}/requirements-dev.txt |
| 166 | -r{toxinidir}/requirements-test.txt |
| 167 | pylint |
| 168 | skip_install = true |
| 169 | commands = |
| 170 | - pylint -E NG-RO/osm_ng_ro |
| 171 | - pylint -E RO-plugin/osm_ro_plugin |
| 172 | - pylint -E RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision |
| 173 | - pylint -E RO-SDN-dpb/osm_rosdn_dpb |
| 174 | - pylint -E RO-SDN-dynpac/osm_rosdn_dynpac |
| 175 | - pylint -E RO-SDN-floodlight_openflow/osm_rosdn_floodlightof |
| 176 | - pylint -E RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn |
| 177 | - pylint -E RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail |
| 178 | - pylint -E RO-SDN-odl_openflow/osm_rosdn_odlof |
| 179 | - pylint -E RO-SDN-onos_openflow/osm_rosdn_onosof |
| 180 | - pylint -E RO-SDN-onos_vpls/osm_rosdn_onos_vpls |
| 181 | - pylint -E RO-VIM-aws/osm_rovim_aws |
| 182 | - pylint -E RO-VIM-azure/osm_rovim_azure |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 183 | - pylint -E RO-VIM-openstack/osm_rovim_openstack |
| 184 | - pylint -E RO-VIM-openvim/osm_rovim_openvim |
| 185 | - pylint -E RO-VIM-vmware/osm_rovim_vmware |
| gallardo | 34aa3a9 | 2021-10-08 11:50:00 +0000 | [diff] [blame] | 186 | - pylint -E RO-VIM-gcp/osm_rovim_gcp |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 187 | |
| 188 | |
| 189 | ####################################################################################### |
| 190 | [testenv:safety] |
| 191 | setenv = |
| 192 | LC_ALL=C.UTF-8 |
| 193 | LANG=C.UTF-8 |
| 194 | deps = {[testenv]deps} |
| 195 | safety |
| 196 | skip_install = true |
| 197 | commands = |
| 198 | - safety check --full-report |
| 199 | |
| 200 | |
| 201 | ####################################################################################### |
| 202 | [testenv:pip-compile] |
| beierlm | 5ef8b73 | 2022-01-13 13:21:53 -0500 | [diff] [blame] | 203 | deps = pip-tools==6.4.0 |
| sousaedu | becd083 | 2021-04-08 00:16:18 +0200 | [diff] [blame] | 204 | skip_install = true |
| beierlm | 5ef8b73 | 2022-01-13 13:21:53 -0500 | [diff] [blame] | 205 | whitelist_externals = bash |
| 206 | [ |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 207 | commands = |
| beierlm | 5ef8b73 | 2022-01-13 13:21:53 -0500 | [diff] [blame] | 208 | - bash -c "for file in requirements*.in ; do \ |
| 209 | UNSAFE="" ; \ |
| 210 | if [[ $file =~ 'dist' ]] ; then UNSAFE='--allow-unsafe' ; fi ; \ |
| 211 | pip-compile -rU --no-header $UNSAFE $file ;\ |
| sousaedu | becd083 | 2021-04-08 00:16:18 +0200 | [diff] [blame] | 212 | out=`echo $file | sed 's/.in/.txt/'` ; \ |
| 213 | sed -i -e '1 e head -16 tox.ini' $out ;\ |
| 214 | done" |
| beierlm | 5ef8b73 | 2022-01-13 13:21:53 -0500 | [diff] [blame] | 215 | - bash -c "sed -i 's/.*RO-plugin/-e RO-plugin/g' requirements-test.txt" |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 216 | |
| 217 | |
| 218 | ####################################################################################### |
| 219 | [testenv:dist_ng_ro] |
| 220 | deps = {[testenv]deps} |
| 221 | -r{toxinidir}/requirements-dist.txt |
| 222 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 223 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 224 | changedir = {toxinidir}/NG-RO |
| 225 | commands = |
| 226 | sh -c 'rm -rf osm_ng_ro/requirements.txt deb_dist dist osm_ng_ro.egg-info osm_ng_ro*.tar.gz' |
| 227 | sh -c 'cp ../requirements.txt osm_ng_ro/requirements.txt' |
| 228 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 229 | sh -c 'cd deb_dist/osm-ng-ro*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 230 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 231 | |
| 232 | ####################################################################################### |
| 233 | [testenv:dist_ro_plugin] |
| 234 | deps = {[testenv]deps} |
| 235 | -r{toxinidir}/requirements-dist.txt |
| 236 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 237 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 238 | changedir = {toxinidir}/RO-plugin |
| 239 | commands = |
| 240 | sh -c 'rm -rf deb_dist dist osm_ro_plugin.egg-info osm_ro_plugin*.tar.gz' |
| 241 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 242 | sh -c 'cd deb_dist/osm-ro-plugin*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 243 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 244 | |
| 245 | ####################################################################################### |
| 246 | [testenv:dist_ro_sdn_arista_cloudvision] |
| 247 | deps = {[testenv]deps} |
| 248 | -r{toxinidir}/requirements-dist.txt |
| 249 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 250 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 251 | changedir = {toxinidir}/RO-SDN-arista_cloudvision |
| 252 | commands = |
| 253 | sh -c 'rm -rf deb_dist dist osm_rosdn_arista_cloudvision.egg-info osm_rosdn_arista_cloudvision*.tar.gz' |
| 254 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 255 | sh -c 'cd deb_dist/osm-rosdn-arista-cloudvision*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 256 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 257 | |
| 258 | ####################################################################################### |
| 259 | [testenv:dist_ro_sdn_dpb] |
| 260 | deps = {[testenv]deps} |
| 261 | -r{toxinidir}/requirements-dist.txt |
| 262 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 263 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 264 | changedir = {toxinidir}/RO-SDN-dpb |
| 265 | commands = |
| 266 | sh -c 'rm -rf deb_dist dist osm_rosdn_dpb.egg-info osm_rosdn_dpb*.tar.gz' |
| 267 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 268 | sh -c 'cd deb_dist/osm-rosdn-dpb*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 269 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 270 | |
| 271 | ####################################################################################### |
| 272 | [testenv:dist_ro_sdn_dynpac] |
| 273 | deps = {[testenv]deps} |
| 274 | -r{toxinidir}/requirements-dist.txt |
| 275 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 276 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 277 | changedir = {toxinidir}/RO-SDN-dynpac |
| 278 | commands = |
| 279 | sh -c 'rm -rf deb_dist dist osm_rosdn_dynpac.egg-info osm_rosdn_dynpac*.tar.gz' |
| 280 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 281 | sh -c 'cd deb_dist/osm-rosdn-dynpac*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 282 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 283 | |
| 284 | ####################################################################################### |
| 285 | [testenv:dist_ro_sdn_floodlight_of] |
| 286 | deps = {[testenv]deps} |
| 287 | -r{toxinidir}/requirements-dist.txt |
| 288 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 289 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 290 | changedir = {toxinidir}/RO-SDN-floodlight_openflow |
| 291 | commands = |
| 292 | sh -c 'rm -rf deb_dist dist osm_rosdn_floodlightof.egg-info osm_rosdn_floodlightof*.tar.gz' |
| 293 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 294 | sh -c 'cd deb_dist/osm-rosdn-floodlightof*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 295 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 296 | |
| 297 | ####################################################################################### |
| 298 | [testenv:dist_ro_sdn_ietfl2vpn] |
| 299 | deps = {[testenv]deps} |
| 300 | -r{toxinidir}/requirements-dist.txt |
| 301 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 302 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 303 | changedir = {toxinidir}/RO-SDN-ietfl2vpn |
| 304 | commands = |
| 305 | sh -c 'rm -rf deb_dist dist osm_rosdn_ietfl2vpn.egg-info osm_rosdn_ietfl2vpn*.tar.gz' |
| 306 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 307 | sh -c 'cd deb_dist/osm-rosdn-ietfl2vpn*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 308 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 309 | |
| 310 | ####################################################################################### |
| 311 | [testenv:dist_ro_sdn_juniper_contrail] |
| 312 | deps = {[testenv]deps} |
| 313 | -r{toxinidir}/requirements-dist.txt |
| 314 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 315 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 316 | changedir = {toxinidir}/RO-SDN-juniper_contrail |
| 317 | commands = |
| 318 | sh -c 'rm -rf deb_dist dist osm_rosdn_juniper_contrail.egg-info osm_rosdn_juniper_contrail*.tar.gz' |
| 319 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 320 | sh -c 'cd deb_dist/osm-rosdn-juniper-contrail*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 321 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 322 | |
| 323 | ####################################################################################### |
| 324 | [testenv:dist_ro_sdn_odl_of] |
| 325 | deps = {[testenv]deps} |
| 326 | -r{toxinidir}/requirements-dist.txt |
| 327 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 328 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 329 | changedir = {toxinidir}/RO-SDN-odl_openflow |
| 330 | commands = |
| 331 | sh -c 'rm -rf deb_dist dist osm_rosdn_odlof.egg-info osm_rosdn_odlof*.tar.gz' |
| 332 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 333 | sh -c 'cd deb_dist/osm-rosdn-odlof*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 334 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 335 | |
| 336 | ####################################################################################### |
| 337 | [testenv:dist_ro_sdn_onos_of] |
| 338 | deps = {[testenv]deps} |
| 339 | -r{toxinidir}/requirements-dist.txt |
| 340 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 341 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 342 | changedir = {toxinidir}/RO-SDN-onos_openflow |
| 343 | commands = |
| 344 | sh -c 'rm -rf deb_dist dist osm_rosdn_onosof.egg-info osm_rosdn_onosof*.tar.gz' |
| 345 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 346 | sh -c 'cd deb_dist/osm-rosdn-onosof*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 347 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 348 | |
| 349 | ####################################################################################### |
| 350 | [testenv:dist_ro_sdn_onos_vpls] |
| 351 | deps = {[testenv]deps} |
| 352 | -r{toxinidir}/requirements-dist.txt |
| 353 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 354 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 355 | changedir = {toxinidir}/RO-SDN-onos_vpls |
| 356 | commands = |
| 357 | sh -c 'rm -rf deb_dist dist osm_rosdn_onos_vpls.egg-info osm_rosdn_onos_vpls*.tar.gz' |
| 358 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 359 | sh -c 'cd deb_dist/osm-rosdn-onos-vpls*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 360 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 361 | |
| 362 | ####################################################################################### |
| 363 | [testenv:dist_ro_vim_aws] |
| 364 | deps = {[testenv]deps} |
| 365 | -r{toxinidir}/requirements-dist.txt |
| 366 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 367 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 368 | changedir = {toxinidir}/RO-VIM-aws |
| 369 | commands = |
| 370 | sh -c 'rm -rf deb_dist dist osm_rovim_aws.egg-info osm_rovim_aws*.tar.gz' |
| 371 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 372 | sh -c 'cd deb_dist/osm-rovim-aws*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 373 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 374 | |
| 375 | ####################################################################################### |
| 376 | [testenv:dist_ro_vim_azure] |
| 377 | deps = {[testenv]deps} |
| 378 | -r{toxinidir}/requirements-dist.txt |
| 379 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 380 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 381 | changedir = {toxinidir}/RO-VIM-azure |
| 382 | commands = |
| 383 | sh -c 'rm -rf deb_dist dist osm_rovim_azure.egg-info osm_rovim_azure*.tar.gz' |
| 384 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 385 | sh -c 'cd deb_dist/osm-rovim-azure*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 386 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 387 | |
| 388 | ####################################################################################### |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 389 | [testenv:dist_ro_vim_openstack] |
| 390 | deps = {[testenv]deps} |
| 391 | -r{toxinidir}/requirements-dist.txt |
| 392 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 393 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 394 | changedir = {toxinidir}/RO-VIM-openstack |
| 395 | commands = |
| 396 | sh -c 'rm -rf deb_dist dist osm_rovim_openstack.egg-info osm_rovim_openstack*.tar.gz' |
| 397 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 398 | sh -c 'cd deb_dist/osm-rovim-openstack*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 399 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 400 | |
| 401 | ####################################################################################### |
| 402 | [testenv:dist_ro_vim_openvim] |
| 403 | deps = {[testenv]deps} |
| 404 | -r{toxinidir}/requirements-dist.txt |
| 405 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 406 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 407 | changedir = {toxinidir}/RO-VIM-openvim |
| 408 | commands = |
| 409 | sh -c 'rm -rf deb_dist dist osm_rovim_openvim.egg-info osm_rovim_openvim*.tar.gz' |
| 410 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 411 | sh -c 'cd deb_dist/osm-rovim-openvim*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 412 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 413 | |
| 414 | ####################################################################################### |
| 415 | [testenv:dist_ro_vim_vmware] |
| 416 | deps = {[testenv]deps} |
| 417 | -r{toxinidir}/requirements-dist.txt |
| 418 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 419 | whitelist_externals = sh |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 420 | changedir = {toxinidir}/RO-VIM-vmware |
| 421 | commands = |
| 422 | sh -c 'rm -rf deb_dist dist osm_rovim_vmware.egg-info osm_rovim_vmware*.tar.gz' |
| 423 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 424 | sh -c 'cd deb_dist/osm-rovim-vmware*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 425 | |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 426 | |
| 427 | ####################################################################################### |
| gallardo | 34aa3a9 | 2021-10-08 11:50:00 +0000 | [diff] [blame] | 428 | [testenv:dist_ro_vim_gcp] |
| 429 | deps = {[testenv]deps} |
| 430 | -r{toxinidir}/requirements-dist.txt |
| 431 | skip_install = true |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 432 | whitelist_externals = sh |
| gallardo | 34aa3a9 | 2021-10-08 11:50:00 +0000 | [diff] [blame] | 433 | changedir = {toxinidir}/RO-VIM-gcp |
| 434 | commands = |
| 435 | sh -c 'rm -rf deb_dist dist osm_rovim_gcp.egg-info osm_rovim_gcp*.tar.gz' |
| 436 | python3 setup.py --command-packages=stdeb.command sdist_dsc |
| 437 | sh -c 'cd deb_dist/osm-rovim-gcp*/ && dpkg-buildpackage -rfakeroot -uc -us' |
| gallardo | 34aa3a9 | 2021-10-08 11:50:00 +0000 | [diff] [blame] | 438 | |
| 439 | |
| 440 | ####################################################################################### |
| sousaedu | 96abfc2 | 2021-02-18 14:57:01 +0100 | [diff] [blame] | 441 | [flake8] |
| 442 | ignore = |
| 443 | W291, |
| 444 | W293, |
| 445 | W503, |
| 446 | W605, |
| 447 | E123, |
| 448 | E125, |
| 449 | E203, |
| 450 | E226, |
| 451 | E241 |
| 452 | exclude = |
| 453 | .git, |
| 454 | __pycache__, |
| 455 | .tox, |
| 456 | max-line-length = 120 |
| 457 | show-source = True |
| 458 | builtins = _ |
| sousaedu | 0fe84cb | 2022-01-17 13:48:22 +0000 | [diff] [blame] | 459 | import-order-style = google |