3 # This script wants environment variables
4 # set by parallel-vars.sh script.
5 # Otherwise "make test" is not parallelized,
6 # possibly leading to jobs overstepping their time limit.
8 # basic build script example
11 OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
12 OS_VERSION_ID=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
15 echo OS_VERSION_ID: $OS_VERSION_ID
17 # do nothing but print the current slave hostname
19 export CCACHE_DIR=/tmp/ccache
20 if [ -d $CCACHE_DIR ];then
21 echo $CCACHE_DIR exists
24 echo $CCACHE_DIR does not exist. This must be a new slave.
27 echo "cat /etc/bootstrap.sha"
28 if [ -f /etc/bootstrap.sha ];then
29 cat /etc/bootstrap.sha
31 echo "Cannot find cat /etc/bootstrap.sha"
34 echo "cat /etc/bootstrap-functions.sha"
35 if [ -f /etc/bootstrap-functions.sha ];then
36 cat /etc/bootstrap-functions.sha
38 echo "Cannot find cat /etc/bootstrap-functions.sha"
41 echo "sha1sum of this script: ${0}"
46 make UNATTENDED=yes install-dep
47 make UNATTENDED=yes dpdk-install-dev
48 make UNATTENDED=yes -C build-root PLATFORM=vpp TAG=vpp wipe-all install-packages
49 make UNATTENDED=yes -C build-root PLATFORM=vpp TAG=vpp sample-plugin-install
50 make UNATTENDED=yes -C build-root PLATFORM=vpp TAG=vpp libmemif-install
51 make UNATTENDED=yes pkg-deb
53 if [ "x${VPP_REPO}" == "x1" ]; then
54 if [ "x${REBASE_NEEDED}" == "x1" ]; then
55 echo "This patch to vpp is based on an old point in the tree that is likely"
56 echo "to fail verify."
57 echo "PLEASE REBASE PATCH ON THE CURRENT HEAD OF THE VPP REPO"
62 echo "*******************************************************************"
63 echo "* VPP ARM BUILD SUCCESSFULLY COMPLETED"
64 echo "*******************************************************************"