From fc5f8e3deef6fd02f0f65752148355d1e66743d1 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Thu, 9 Jun 2016 14:58:09 -0400 Subject: adding testing builder Change-Id: I6d93dbad6ac7d25ace691ca0991179ef8cf8645a Signed-off-by: Dan Radez --- jjb/apex/apex-unit-test.sh | 17 +++++++++++++++++ jjb/apex/apex.yml | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100755 jjb/apex/apex-unit-test.sh (limited to 'jjb') diff --git a/jjb/apex/apex-unit-test.sh b/jjb/apex/apex-unit-test.sh new file mode 100755 index 000000000..5c4341741 --- /dev/null +++ b/jjb/apex/apex-unit-test.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -o errexit +set -o nounset +set -o pipefail +# log info to console +echo "Starting unit tests for Apex..." +echo "---------------------------------------------------------------------------------------" +echo + + +pushd ci/ > /dev/null +sudo CONFIG="${WORKSPACE}/build" LIB="${WORKSPACE}/lib" ./clean.sh +./test.sh +popd + +echo "--------------------------------------------------------" +echo "Unit Tests Done!" diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index efd8a4757..6c14a8107 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -127,6 +127,7 @@ - 'apex-verify-{stream2}' builders: + - 'apex-unit-test' - 'apex-build' - trigger-builds: - project: 'apex-deploy-virtual-os-odl_l2-nofeature-ha-{stream2}' @@ -227,6 +228,7 @@ max-total: 10 builders: + - 'apex-unit-test' - 'apex-build' - trigger-builds: - project: 'apex-deploy-virtual-os-nosdn-nofeature-ha-{stream1}' @@ -786,6 +788,12 @@ ######################## # builder macros ######################## +- builder: + name: 'apex-unit-test' + builders: + - shell: + !include-raw: ./apex-unit-test.sh + - builder: name: 'apex-build' builders: -- cgit 1.2.3-korg