From 01d154f76076dafd4832e4f298207bc0e8ae3973 Mon Sep 17 00:00:00 2001 From: Thomas F Herbert Date: Wed, 2 Nov 2016 16:13:26 -0400 Subject: Initial commit and set base dir when called from ci-man JJB. Change-Id: I0ac3ef1d23cae46293e330a48392801026e311b8 Signed-off-by: Thomas F Herbert --- scripts/ci/verify.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 scripts/ci/verify.sh diff --git a/scripts/ci/verify.sh b/scripts/ci/verify.sh new file mode 100755 index 0000000..ed698b4 --- /dev/null +++ b/scripts/ci/verify.sh @@ -0,0 +1,31 @@ +#!/bin/bash +#set -xe -o pipefail +echo "======================================" +echo executing $0 +echo +# Check if we are running on Centos or Ubuntu +if [ -f /etc/lsb-release ];then + cat /etc/lsb-release + echo "======================================" + echo "Ubuntu version: " + . /etc/lsb-release + sudo apt-get install rpm + echo "Ubuntu is not supported for now." + exit 0 +elif [ -f /etc/redhat-release ];then + echo "======================================" + echo "redhat release version: " + cat /etc/redhat-release + echo +fi +export BASE_DIR=$(dirname $0)/../rpm_dpdk + +echo "======================================" +echo "BASE_DIR: ${BASE_DIR}" +echo +if [ -d ${BASE_DIR}/build ]; then + cd ${BASE_DIR}/build/ + if [ -e build.sh ]; then + ./build.sh + fi +fi -- cgit 1.2.3-korg