X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=devops-stages%2Fstage-build.sh;h=c0ca1881f82081321d2828242fefe860bcc30294;hb=HEAD;hp=d14f8d92d50598bc1220ec4220cfe42a2005d0dd;hpb=7277486065c905f91477bb064da86855a8fa269a;p=osm%2FRO.git diff --git a/devops-stages/stage-build.sh b/devops-stages/stage-build.sh index d14f8d92..3d570c78 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 @@ -13,34 +12,50 @@ # See the License for the specific language governing permissions and # limitations under the License. +set -ex + rm -rf deb_dist/* mkdir -p deb_dist -# main RO module -make -C RO clean package BRANCH=master -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/ - +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_sdn_tapi +dist_ro_vim_aws +dist_ro_vim_azure +dist_ro_vim_openstack +dist_ro_vim_openvim +dist_ro_vim_vmware +dist_ro_vim_gcp" + +TOX_ENV_LIST="$(echo $PACKAGES | sed "s/ /,/g")" + +TOX_PARALLEL_NO_SPINNER=1 tox -e $TOX_ENV_LIST + +# Copying packages # RO plugin -make -C RO-plugin clean package cp RO-plugin/deb_dist/python3-osm-ro-plugin_*.deb deb_dist/ -# VIM plugings: vmware, openstack, AWS, fos, azure, Opennebula, +# NG-RO +cp NG-RO/deb_dist/python3-osm-ng-ro_*.deb deb_dist/ + +# VIM plugins: vmware, openstack, AWS, azure, GCP 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 +# SDN plugins: DynPac, Ietfl2vpn, Onosof Floodlightof, Transport API (TAPI) 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 -