summaryrefslogtreecommitdiff
path: root/service/go
blob: c5822401845b5ff01ad3fc4ea6a16bf09024015e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

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