diff options
author | Bruno Wagner <bwagner@riseup.net> | 2017-01-04 10:53:43 -0200 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2017-01-04 10:53:43 -0200 |
commit | 602da0c9358c3d1b01fee3870202abcbae548602 (patch) | |
tree | 7aa7a817fac20d095534a75d8b003744ed77a7bd /service/go | |
parent | 8e2f0852f173aca560f71e871ceab1d471a8b206 (diff) |
Simplified service ./go to call make directly
Also added the deactivation of the virtualenv before running
anything, to avoid conflicting virtualenvs
Diffstat (limited to 'service/go')
-rwxr-xr-x | service/go | 34 |
1 files changed, 5 insertions, 29 deletions
@@ -1,31 +1,7 @@ #!/bin/bash -if [ "$1" == 'test' ]; then - set -e - pushd .. - make test_py - popd -elif [ "$1" == 'pep8' ]; then - set -e - pushd .. - make linters_js - popd -elif [ "$1" == 'setup' ]; then - set -e - pushd .. - make setup - popd -elif [ "$1" == 'coverage_all' ]; then - set -e - pushd .. - make coverage - popd -elif [ "$1" == "functional" ]; then - set -e - pushd .. - make test_functional - popd -else - echo "Command doesn't exist" - exit 1 -fi +type -t deactivate && deactivate +set -e +pushd .. +make $* +popd |