diff options
author | Dan Radez <dradez@redhat.com> | 2016-06-09 14:58:09 -0400 |
---|---|---|
committer | Dan Radez <dradez@redhat.com> | 2016-06-13 19:23:38 -0400 |
commit | fc5f8e3deef6fd02f0f65752148355d1e66743d1 (patch) | |
tree | 20f9c50c9c9a7e2cb3591c1c039171ea536feeff /jjb/apex | |
parent | 08e5e1c92db49df8d902cd49b8dba57a50968e34 (diff) |
adding testing builder
Change-Id: I6d93dbad6ac7d25ace691ca0991179ef8cf8645a
Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'jjb/apex')
-rwxr-xr-x | jjb/apex/apex-unit-test.sh | 17 | ||||
-rw-r--r-- | jjb/apex/apex.yml | 8 |
2 files changed, 25 insertions, 0 deletions
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}' @@ -787,6 +789,12 @@ # builder macros ######################## - builder: + name: 'apex-unit-test' + builders: + - shell: + !include-raw: ./apex-unit-test.sh + +- builder: name: 'apex-build' builders: - shell: |