X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=devops-stages%2Fstage-build.sh;h=4ece8af71a30e29ba98f56608329ef25be1b6ed0;hp=a2f565a122a31392bc8b30250c5b259fef01d843;hb=96abfc244d7937f7bb33aae8916033c0defd29d4;hpb=4327690ae33f666e701b46645a7429c3370ddbb9 diff --git a/devops-stages/stage-build.sh b/devops-stages/stage-build.sh index a2f565a1..4ece8af7 100755 --- a/devops-stages/stage-build.sh +++ b/devops-stages/stage-build.sh @@ -1,5 +1,4 @@ #!/bin/bash - # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -18,35 +17,49 @@ set -ex rm -rf deb_dist/* mkdir -p deb_dist -# main RO module -make -C RO clean package -cp RO/deb_dist/python3-osm-ro_*.deb deb_dist/ - -# RO client -make -C RO-client clean package -cp RO-client/deb_dist/python3-osm-roclient_*.deb 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_opennebula & +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; +# Copying packages # RO plugin -make -C RO-plugin clean package cp RO-plugin/deb_dist/python3-osm-ro-plugin_*.deb deb_dist/ # NG-RO -make -C NG-RO clean package cp NG-RO/deb_dist/python3-osm-ng-ro_*.deb deb_dist/ # VIM plugings: vmware, openstack, AWS, fos, azure, Opennebula, for vim_plugin in RO-VIM-* do - make -C $vim_plugin clean package cp ${vim_plugin}/deb_dist/python3-osm-rovim*.deb deb_dist/ done # SDN plugins: DynPac, Ietfl2vpn, Onosof Floodlightof for sdn_plugin in RO-SDN-* do - [[ "$sdn_plugin" == RO-SDN-tapi ]] && continue # tapi folder appears at Jenkins due to container reuse - [[ "$sdn_plugin" == RO-SDN-arista ]] && continue # arista folder appears at Jenkins due to container reuse - make -C $sdn_plugin clean package cp ${sdn_plugin}/deb_dist/python3-osm-rosdn*.deb deb_dist/ done