diff options
author | 2016-11-02 16:13:26 -0400 | |
---|---|---|
committer | 2016-11-02 17:14:22 -0400 | |
commit | 01d154f76076dafd4832e4f298207bc0e8ae3973 (patch) | |
tree | 05858926d05b343d4903e30230622696d3a678b3 | |
parent | a030dc1de9522524b4900863e427aa6b7d927b05 (diff) |
Initial commit and set base dir when called from ci-man JJB.
Change-Id: I0ac3ef1d23cae46293e330a48392801026e311b8
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
-rwxr-xr-x | scripts/ci/verify.sh | 31 |
1 files changed, 31 insertions, 0 deletions
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 |