Skip to content

Commit

Permalink
try to fix coverage for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
F483 committed Feb 7, 2016
1 parent bc0ef06 commit bc064ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion Makefile
Expand Up @@ -79,7 +79,6 @@ rpcserver: setup

test: setup
bash test.sh
$(COVERAGE) report --fail-under=95


publish: test
Expand Down
11 changes: 6 additions & 5 deletions test.sh
Expand Up @@ -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

0 comments on commit bc064ec

Please sign in to comment.