From 002920e29d7fa4a28abec96773b470c90bafe55d Mon Sep 17 00:00:00 2001 From: mbeierl Date: Mon, 23 Nov 2015 08:23:47 -0800 Subject: Adding workload modules Adding the ablity to define workloads in modules which can be referenced from the API. Breaking out the test execution into its own class so it will be easier to support ReST or other interfaces. Added flake8 and code coverage reports where possible to merge and verify jobs Change-Id: Ieb51e4e7e1e989288a6f81f4757709669914a196 JIRA: STORPERF-21 Signed-off-by: mbeierl --- ci/merge.sh | 10 +++++++++- ci/verify.sh | 6 +++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'ci') diff --git a/ci/merge.sh b/ci/merge.sh index bd1d3fe..337fc55 100755 --- a/ci/merge.sh +++ b/ci/merge.sh @@ -8,4 +8,12 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -PYTHONPATH="`pwd`/storperf":"`pwd`/tests" nosetests --with-xunit . +if [ -x /usr/bin/flake8 ]; then + flake8 storperf +fi + +nosetests --with-xunit \ + --with-coverage \ + --cover-package=storperf\ + --cover-xml \ + storperf diff --git a/ci/verify.sh b/ci/verify.sh index 333a05c..d1b0691 100755 --- a/ci/verify.sh +++ b/ci/verify.sh @@ -8,4 +8,8 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -exit 0 +echo "Verifying code format and compliance..." + +if [ -x /usr/bin/flake8 ] ; then + flake8 storperf +fi -- cgit 1.2.3-korg