2 # basic build script example
4 # do nothing but print the current slave hostname
6 export CCACHE_DIR=/tmp/ccache
7 if [ -d $CCACHE_DIR ];then
8 echo $CCACHE_DIR exists
11 echo $CCACHE_DIR does not exist. This must be a new slave.
14 echo "cat /etc/bootstrap.sha"
15 if [ -f /etc/bootstrap.sha ];then
16 cat /etc/bootstrap.sha
18 echo "Cannot find cat /etc/bootstrap.sha"
21 echo "cat /etc/bootstrap-functions.sha"
22 if [ -f /etc/bootstrap-functions.sha ];then
23 cat /etc/bootstrap-functions.sha
25 echo "Cannot find cat /etc/bootstrap-functions.sha"
28 echo "sha1sum of this script: ${0}"
32 echo "IS_CSIT_VPP_JOB=${IS_CSIT_VPP_JOB}"
33 # If and only if we are doing verify *after* make verify was made to work
34 # and we are not a CSIT job just building packages, then use make verify,
35 # else use the old build-root/vagrant/build.sh
36 if (git log --oneline | grep 37682e1 > /dev/null 2>&1) && \
37 [ "x${IS_CSIT_VPP_JOB}" != "xTrue" ]
39 echo "Building using \"make verify\""
40 [ "x${DRYRUN}" == "xTrue" ] || make UNATTENDED=yes verify
42 echo "Building using \"build-root/vagrant/build.sh\""
43 [ "x${DRYRUN}" == "xTrue" ] || build-root/vagrant/build.sh
46 if [ "x${VPP_REPO}" == "x1" ]; then
47 if [ "x${REBASE_NEEDED}" == "x1" ]; then
48 echo "This patch to vpp is based on an old point in the tree that is likely"
49 echo "to fail verify."
50 echo "PLEASE REBASE PATCH ON THE CURRENT HEAD OF THE VPP REPO"
55 echo "*******************************************************************"
56 echo "* VPP BUILD SUCCESSFULLY COMPLETED"
57 echo "*******************************************************************"