summaryrefslogtreecommitdiffstats
path: root/ci/merge.sh
blob: ddcc0eb0ad1996abd3040500ed204697d624a0a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
##############################################################################
# Copyright (c) 2015 EMC and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

if [ -z $WORKSPACE ]
then
    WORKSPACE="$HOME"
fi

virtualenv $WORKSPACE/storperf_venv
source $WORKSPACE/storperf_venv/bin/activate

easy_install -U setuptools
pip install nose -I
pip install coverage -I
python ci/setup.py develop


if [ -x /usr/bin/flake8 ]; then
    flake8 storperf
fi

nosetests --with-xunit \
         --with-coverage \
         --cover-package=storperf\
         --cover-xml \
         storperf

deactivate