Enabled centos7 build
[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 if [ ${OS} == "ubuntu1404" ]; then
15     cd build-root/
16     ./bootstrap.sh
17     make PLATFORM=vpp V=0 TAG=vpp install-deb
18 elif [ ${OS} == "centos7" ]; then
19     cd build-root/
20     ./bootstrap.sh
21     make PLATFORM=vpp V=0 TAG=vpp install-rpm
22 else
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;h=f3cb320bd9a2515eab0c4564c927764c9dad417d;hb=HEAD"
24     exit 1
25 fi