forked from makerbot/conveyor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·38 lines (34 loc) · 1.02 KB
/
test.sh
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
36
37
38
#! /bin/sh
# set -x
_modules='
conveyor
conveyor.client
conveyor.debug
conveyor.enum
conveyor.event
conveyor.ipc
conveyor.jsonrpc
conveyor.log
conveyor.main
conveyor.process
conveyor.recipe
conveyor.server
conveyor.stoppable
conveyor.task
conveyor.test
conveyor.thing
conveyor.toolpath
conveyor.toolpath.skeinforge
conveyor.visitor
'
if [ ! -d obj/ ]
then
mkdir obj/
fi
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src/main/python/:submodule/s3g/ coverage run --branch test.py -- -v ${_modules}
_code=$?
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src/main/python/:submodule/s3g/ coverage annotate -d obj/ --include 'src/main/python/*'
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src/main/python/:submodule/s3g/ coverage html -d obj/ --include 'src/main/python/*'
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src/main/python/:submodule/s3g/ coverage xml -o obj/coverage.xml --include 'src/main/python/*'
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src/main/python/:submodule/s3g/ coverage report --include 'src/main/python/*'
exit ${_code}