diff options
author | Bruno Wagner <bwgpro@gmail.com> | 2015-01-20 16:47:12 -0200 |
---|---|---|
committer | Bruno Wagner <bwgpro@gmail.com> | 2015-01-20 16:47:12 -0200 |
commit | a68a37acffc56417b45f2975a5cc900df34eec1f (patch) | |
tree | 622e5a639c3428afc57b5fe6f35c9f65ca069ce4 | |
parent | 4930914ad7895d2e1ef62370e7278b3bd94fd4ee (diff) |
Fixed the arguments passing of the go script, setup with always unzip was not working because of it
-rwxr-xr-x | install-pixelated.sh | 3 | ||||
-rwxr-xr-x | service/go | 12 |
2 files changed, 8 insertions, 7 deletions
diff --git a/install-pixelated.sh b/install-pixelated.sh index 9a3858ee..fa6cd1e4 100755 --- a/install-pixelated.sh +++ b/install-pixelated.sh @@ -49,8 +49,9 @@ cd ../service rm -rf .virtualenv virtualenv .virtualenv source .virtualenv/bin/activate -./go setup +./go setup --always-unzip pip uninstall -y enum34 +pip install enum34 # print usage cat <<EOF @@ -1,8 +1,8 @@ #!/bin/bash function setuppy { - python setup.py develop pip install -r test_requirements.txt + python setup.py develop $* } function setupjs { @@ -12,11 +12,11 @@ function setupjs { } function runIntegrationTests { - nosetests "${@:2}" test/integration + nosetests "$*" test/integration } function runUnitTests { - nosetests "${@:2}" test/unit + nosetests "$*" test/unit } function runPep8 { @@ -32,8 +32,8 @@ function runJSHint { if [ "$1" == 'test' ]; then runJSHint runPep8 - runUnitTests - runIntegrationTests + runUnitTests "${@:2}" + runIntegrationTests "${@:2}" elif [ "$1" == 'unit' ]; then runUnitTests elif [ "$1" == 'integration' ]; then @@ -46,7 +46,7 @@ elif [ "$1" == 'setupjs' ]; then setupjs elif [ "$1" == 'setup' ]; then setupjs - setuppy + setuppy "${@:2}" elif [ "$1" == 'start' ]; then /usr/bin/env pixelated-user-agent "${@:2}" else |