From 527b3e9051e09de1e5abe02aed083c61fc82420c Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Tue, 6 Jan 2015 20:34:27 -0200 Subject: Service ./go has some new tricks './go setup' install python dependencies, js build and the pixelated executable './go start' same as pixelated-user-agent, accepts options to passtrough --- service/go | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'service') diff --git a/service/go b/service/go index 5ae8d26b..c5822401 100755 --- a/service/go +++ b/service/go @@ -1,9 +1,30 @@ #!/bin/bash -if [ "$1" == 'test' ] -then +function setuppy { + pip install -r requirements.txt + pip install -r test_requirements.txt + python setup.py develop +} + +function setupjs { + cd ../web-ui + ./go clean + LC_ALL=en_US.UTF-8 ./go build + cd - +} + +if [ "$1" == 'test' ]; then nosetests --nocapture test/unit nosetests --nocapture test/integration +elif [ "$1" == 'setuppy' ]; then + setuppy +elif [ "$1" == 'setupjs' ]; then + setupjs +elif [ "$1" == 'setup' ]; then + setupjs + setuppy +elif [ "$1" == 'start' ]; then + /usr/bin/env pixelated-user-agent "${@:2}" else python setup.py $* fi -- cgit v1.2.3