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