summaryrefslogtreecommitdiff
path: root/service/go
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-01-06 20:34:27 -0200
committerBruno Wagner <bwgpro@gmail.com>2015-01-06 20:34:27 -0200
commit527b3e9051e09de1e5abe02aed083c61fc82420c (patch)
treeab7b46d84b4204626f68a2039e0fa09c722ddf48 /service/go
parent4d49a94e35c1a8aa6543cc4534f6e90293a500f0 (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-xservice/go25
1 files changed, 23 insertions, 2 deletions
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