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