4 # Figure out what system we are running on
5 if [[ -f /etc/lsb-release ]];then
7 elif [[ -f /etc/redhat-release ]];then
8 sudo yum install -y redhat-lsb
9 DISTRIB_ID=`lsb_release -si`
10 DISTRIB_RELEASE=`lsb_release -sr`
11 DISTRIB_CODENAME=`lsb_release -sc`
12 DISTRIB_DESCRIPTION=`lsb_release -sd`
14 echo "----- OS INFO -----"
15 echo DISTRIB_ID: ${DISTRIB_ID}
16 echo DISTRIB_RELEASE: ${DISTRIB_RELEASE}
17 echo DISTRIB_CODENAME: ${DISTRIB_CODENAME}
18 echo DISTRIB_DESCRIPTION: ${DISTRIB_DESCRIPTION}
20 if [[ "$DISTRIB_ID" != "Ubuntu" ]]; then
21 echo 'ERROR: Only Ubuntu is supported currently.'
25 # create HC .deb packages
26 ./packaging/deb/${DISTRIB_CODENAME}/debuild.sh
27 cp ./packaging/deb/${DISTRIB_CODENAME}/*.deb ${WORKSPACE}/csit
30 # execute csit bootstrap script if it exists
31 if [[ ! -e bootstrap-hc2vpp-verify.sh ]]
33 echo 'ERROR: No bootstrap-hc2vpp-verify.sh found'
36 # make sure that bootstrap.sh is executable
37 chmod +x bootstrap-hc2vpp-verify.sh
39 ./bootstrap-hc2vpp-verify.sh ${OS}
42 # vim: ts=4 ts=4 sts=4 et :