From bc064ecac05c0527e308e5a539a5304e31e42ef8 Mon Sep 17 00:00:00 2001 From: F483 Date: Sat, 6 Feb 2016 20:18:34 -0500 Subject: [PATCH] try to fix coverage for travis --- Makefile | 1 - test.sh | 11 ++++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 485977a..f45f0e2 100644 --- a/Makefile +++ b/Makefile @@ -79,7 +79,6 @@ rpcserver: setup test: setup bash test.sh - $(COVERAGE) report --fail-under=95 publish: test diff --git a/test.sh b/test.sh index 8e12e47..d860152 100644 --- a/test.sh +++ b/test.sh @@ -14,14 +14,15 @@ echo $COVERAGE $PEP8 storjlib # start server -screen -S rpc_server -d -m $COVERAGE run --source=storjlib -m storjlib.api startserver --hostname=127.0.0.1 --port=7000 +$COVERAGE run --source=storjlib -m storjlib.api startserver --hostname=127.0.0.1 --port=7000 & +PID=$! # run compatibility tests bash -c "source <(curl -s https://raw.githubusercontent.com/Storj/storjspec/master/test_storjlib_compatibility.sh)" # stop server -screen -S rpc_server -X stuff "^C" +kill -INT $PID -# report coverage FIXME doesnt work on travis -# sleep 10 -# $COVERAGE report --fail-under=95 +# report coverage +sleep 1 +$COVERAGE report --fail-under=95