summaryrefslogtreecommitdiffstats
path: root/jjb/hc2vpp/include-raw-hc2vpp-csit-verify.sh
blob: 99b8d3fa8c4408daeba5a828d4ca8c0eb7da559c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
set -xeu -o pipefail

# create HC .deb packages
if [ "${OS}" == "ubuntu1404" ]; then

    ./packaging/deb/trusty/debuild.sh
    cp ./packaging/deb/trusty/*.deb ${WORKSPACE}/csit

elif [ "${OS}" == "ubuntu1604" ]; then

    ./packaging/deb/xenial/debuild.sh
    cp ./packaging/deb/xenial/*.deb ${WORKSPACE}/csit
fi

cd ${WORKSPACE}/csit
# execute csit bootstrap script if it exists
if [ ! -e bootstrap-hc2vpp-verify.sh ]
then
    echo 'ERROR: No bootstrap-hc2vpp-verify.sh found'
    exit 1
else
    # make sure that bootstrap.sh is executable
    chmod +x bootstrap-hc2vpp-verify.sh
    # run the script
    ./bootstrap-hc2vpp-verify.sh ${OS}
fi

# vim: ts=4 ts=4 sts=4 et :