Support for ubuntu1604 in CI verify
[ci-management.git] / jjb / vpp / include-raw-vpp-build.sh
1 #!/bin/bash
2 # basic build script example
3
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 SUPPORTED="ubuntu1404 ubuntu1604 centos7"
15 declare -A DIST_TARGET
16 DIST_TARGET=(
17     [ubuntu1404]=install-deb
18     [ubuntu1604]=install-deb
19     [centos7]=install-rpm
20 )
21 if [[ ! ${SUPPORTED[*]} =~ ${OS} ]]
22 then
23   echo "Unrecognized OS: ${OS}.  Please edit: https://gerrit.fd.io/r/gitweb?p=ci-management.git;a=blob;f=jjb/vpp/include-raw-vpp-build.sh;hb=HEAD"
24     exit 1
25 fi
26 cd build-root/
27 ./bootstrap.sh
28 make PLATFORM=vpp V=0 TAG=vpp ${DIST_TARGET[${OS}]}