X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=devops-stages%2Fstage-build.sh;h=00b5ae90e600dd9805cc0070a53654af1e331ff8;hb=ff38ba07e4b0f842268a29688fab523caa8d3cb6;hp=28b9045e916f5a1a785025f9b8e85eec5c755a84;hpb=8f7d56bd610de8a8bac49b78ce962ac9f6f9ab2b;p=osm%2FRO.git diff --git a/devops-stages/stage-build.sh b/devops-stages/stage-build.sh index 28b9045e..00b5ae90 100755 --- a/devops-stages/stage-build.sh +++ b/devops-stages/stage-build.sh @@ -17,32 +17,29 @@ set -ex rm -rf deb_dist/* mkdir -p deb_dist -# Building packages -tox -e dist_ro_plugin & -tox -e dist_ng_ro & -tox -e dist_ro_sdn_arista_cloudvision & -tox -e dist_ro_sdn_dpb & -tox -e dist_ro_sdn_dynpac & -tox -e dist_ro_sdn_floodlight_of & -tox -e dist_ro_sdn_ietfl2vpn & -tox -e dist_ro_sdn_juniper_contrail & -tox -e dist_ro_sdn_odl_of & -tox -e dist_ro_sdn_onos_of & -tox -e dist_ro_sdn_onos_vpls & -tox -e dist_ro_vim_aws & -tox -e dist_ro_vim_azure & -tox -e dist_ro_vim_fos & -tox -e dist_ro_vim_openstack & -tox -e dist_ro_vim_openvim & -tox -e dist_ro_vim_vmware & - -while true; do - wait -n || { - code="$?" - ([[ $code = "127" ]] && exit 0 || exit "$code") - break - } -done; +PACKAGES=" +dist_ro_plugin +dist_ng_ro +dist_ro_sdn_arista_cloudvision +dist_ro_sdn_dpb +dist_ro_sdn_dynpac +dist_ro_sdn_floodlight_of +dist_ro_sdn_ietfl2vpn +dist_ro_sdn_juniper_contrail +dist_ro_sdn_odl_of +dist_ro_sdn_onos_of +dist_ro_sdn_onos_vpls +dist_ro_vim_aws +dist_ro_vim_azure +dist_ro_vim_openstack +dist_ro_vim_openvim +dist_ro_vim_vmware" + +TOX_ENV_LIST="$(echo $PACKAGES | sed "s/ /,/g")" +PROCESSES=$(expr `nproc --a` / 2) + +TOX_PARALLEL_NO_SPINNER=1 tox -e $TOX_ENV_LIST --parallel $PROCESSES + # Copying packages # RO plugin cp RO-plugin/deb_dist/python3-osm-ro-plugin_*.deb deb_dist/ @@ -50,7 +47,7 @@ cp RO-plugin/deb_dist/python3-osm-ro-plugin_*.deb deb_dist/ # NG-RO cp NG-RO/deb_dist/python3-osm-ng-ro_*.deb deb_dist/ -# VIM plugings: vmware, openstack, AWS, fos, azure +# VIM plugins: vmware, openstack, AWS, azure for vim_plugin in RO-VIM-* do cp ${vim_plugin}/deb_dist/python3-osm-rovim*.deb deb_dist/