Use make verify only after its working and not for CSIT builds.
[ci-management.git] / jjb / vpp / include-raw-vpp-build.sh
1 #!/bin/bash
2 # basic build script example
3 set -xe -o pipefail
4 # do nothing but print the current slave hostname
5 hostname
6 export CCACHE_DIR=/tmp/ccache
7 if [ -d $CCACHE_DIR ];then
8     echo $CCACHE_DIR exists
9     du -sk $CCACHE_DIR
10 else
11     echo $CCACHE_DIR does not exist.  This must be a new slave.
12 fi
13
14 echo "cat /etc/bootstrap.sha"
15 if [ -f /etc/bootstrap.sha ];then
16     cat /etc/bootstrap.sha
17 else
18     echo "Cannot find cat /etc/bootstrap.sha"
19 fi
20
21 echo "cat /etc/bootstrap-functions.sha"
22 if [ -f /etc/bootstrap-functions.sha ];then
23     cat /etc/bootstrap-functions.sha
24 else
25     echo "Cannot find cat /etc/bootstrap-functions.sha"
26 fi
27
28 echo "sha1sum of this script: ${0}"
29 sha1sum $0
30
31 echo "CC=${CC}"
32 echo "IS_CSIT_VPP_JOB=${IS_CSIT_VPP_JOB}"
33
34 # If and only if we are doing verify *after* make verify was made to work
35 # and we are not a CSIT job just building packages, then use make verify,
36 # else use the old build-root/vagrant/build.sh
37 if (git log --oneline | grep 37682e1 > /dev/null 2>&1) && \
38         [ "x${IS_CSIT_VPP_JOB}" != "xTrue" ]
39 then
40     echo "Building using \"make verify\""
41     [ "x${DRYRUN}" != "True" ]|| make UNATTENDED=yes verify
42 else
43     echo "Building using \"build-root/vagrant/build.sh\""
44     [ "x${DRYRUN}" != "True" ] || build-root/vagrant/build.sh
45 fi
46
47
48 echo "*******************************************************************"
49 echo "* VPP BUILD SUCCESSFULLY COMPLETED"
50 echo "*******************************************************************"