CSIT-484: New csit-hc2vpp job set
[ci-management.git] / jjb / hc2vpp / include-raw-hc2vpp-csit-verify.sh
1 #!/bin/bash
2 set -xeu -o pipefail
3
4 # create HC .deb packages
5 if [ "${OS}" == "ubuntu1404" ]; then
6
7     ./packaging/deb/trusty/debuild.sh
8     cp ./packaging/deb/trusty/*.deb ./
9
10 elif [ "${OS}" == "ubuntu1604" ]; then
11
12     ./packaging/deb/xenial/debuild.sh
13     cp ./packaging/deb/xenial/*.deb ./
14 fi
15
16 cd csit
17 # execute csit bootstrap script if it exists
18 if [ ! -e bootstrap-hc2vpp-verify.sh ]
19 then
20     echo 'ERROR: No bootstrap-hc2vpp-verify.sh found'
21     exit 1
22 else
23     # make sure that bootstrap.sh is executable
24     chmod +x bootstrap-hc2vpp-verify.sh
25     # run the script
26     ./bootstrap-hc2vpp-verify.sh
27 fi
28
29 # vim: ts=4 ts=4 sts=4 et :