summaryrefslogtreecommitdiffstats
path: root/jjb/apex/apex-unit-test.sh
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-09-01 11:01:27 -0400
committerTim Rozet <trozet@redhat.com>2017-09-01 11:01:27 -0400
commitdcb404a6dfa38573ebfe771e0139b31cf4b1acb2 (patch)
tree189c170d73864b9c5401d7f03da1ce55e377af3b /jjb/apex/apex-unit-test.sh
parentefe2a3f0dccb02de3aa9b60a50579d19f97e654b (diff)
Apex: Removes calling apex ci scripts for build/test/deploy
We dont need to use the apex/ci directory anymore and the ci scripts should be in releng. A follow up patch will remove the ci/clean script usage. Change-Id: Ib2c7bd3d2dfee360bb13b42852ff2010a691a018 Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb/apex/apex-unit-test.sh')
-rwxr-xr-xjjb/apex/apex-unit-test.sh21
1 files changed, 18 insertions, 3 deletions
diff --git a/jjb/apex/apex-unit-test.sh b/jjb/apex/apex-unit-test.sh
index abcddcab4..3112c9d36 100755
--- a/jjb/apex/apex-unit-test.sh
+++ b/jjb/apex/apex-unit-test.sh
@@ -8,9 +8,24 @@ echo "--------------------------------------------------------------------------
echo
-pushd ci/ > /dev/null
-./test.sh
-popd
+pushd build/ > /dev/null
+for pkg in yamllint rpmlint iproute epel-release python34-devel python34-nose python34-PyYAML python-pep8 python34-mock python34-pip; do
+ if ! rpm -q ${pkg} > /dev/null; then
+ if ! sudo yum install -y ${pkg}; then
+ echo "Failed to install ${pkg} package..."
+ exit 1
+ fi
+ fi
+done
+
+# Make sure coverage is installed
+if ! python3 -c "import coverage" &> /dev/null; then sudo pip3 install coverage; fi
+
+make rpmlint
+make python-pep8-check
+make yamllint
+make python-tests
+popd > /dev/null
echo "--------------------------------------------------------"
echo "Unit Tests Done!"