summaryrefslogtreecommitdiffstats
path: root/jjb/vpp/include-raw-vpp-build.sh
blob: c43e94e83b718ee882fb991631e144af86035dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# basic build script example

# do nothing but print the current slave hostname
hostname
export CCACHE_DIR=/tmp/ccache
if [ -d $CCACHE_DIR ];then
    echo $CCACHE_DIR exists
    du -sk $CCACHE_DIR
else
    echo $CCACHE_DIR does not exist.  This must be a new slave.
fi

if [ ${OS} == "ubuntu1404" ]; then
    cd build-root/
    ./bootstrap.sh
    make PLATFORM=vpp V=0 TAG=vpp install-deb
elif [ ${OS} == "centos7" ]; then
    cd build-root/
    ./bootstrap.sh
    make PLATFORM=vpp V=0 TAG=vpp install-rpm
else
    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"
    exit 1
fi