diff options
author | Tim Rozet <trozet@redhat.com> | 2016-06-15 19:13:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-06-15 19:13:55 +0000 |
commit | 318110b8cbee301135a26f517dd7292381974697 (patch) | |
tree | d2ffaf904e8ff89e9e593aec924908e8153f7c6f /jjb/apex | |
parent | 24afb7a7d1c9030635988f0538c54bdb967c6b74 (diff) | |
parent | fc5f8e3deef6fd02f0f65752148355d1e66743d1 (diff) |
Merge "adding testing builder"
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: |