diff options
author | Bruno Wagner <bwgpro@gmail.com> | 2015-01-06 20:34:27 -0200 |
---|---|---|
committer | Bruno Wagner <bwgpro@gmail.com> | 2015-01-06 20:34:27 -0200 |
commit | 527b3e9051e09de1e5abe02aed083c61fc82420c (patch) | |
tree | ab7b46d84b4204626f68a2039e0fa09c722ddf48 /service/go | |
parent | 4d49a94e35c1a8aa6543cc4534f6e90293a500f0 (diff) |
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
Diffstat (limited to 'service/go')
-rwxr-xr-x | service/go | 25 |
1 files changed, 23 insertions, 2 deletions
@@ -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 |