summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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