From 602da0c9358c3d1b01fee3870202abcbae548602 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Wed, 4 Jan 2017 10:53:43 -0200 Subject: Simplified service ./go to call make directly Also added the deactivation of the virtualenv before running anything, to avoid conflicting virtualenvs --- service/go | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) (limited to 'service/go') diff --git a/service/go b/service/go index 0183c7b2..25661508 100755 --- a/service/go +++ b/service/go @@ -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 -- cgit v1.2.3