From 80eaf9058f39bff4faf1ac117c71ed34449cfa03 Mon Sep 17 00:00:00 2001 From: Nima Mousavi <4221028+nmousavi@users.noreply.github.com> Date: Thu, 8 Mar 2018 15:02:03 -0500 Subject: [PATCH] Install pylint and coverage if needed. Tested: presubmit manual run --- run_presubmit.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run_presubmit.sh b/run_presubmit.sh index 86623e2ec..0c4b17ae1 100755 --- a/run_presubmit.sh +++ b/run_presubmit.sh @@ -18,7 +18,15 @@ set -euo pipefail # A helper script for ensuring all checks pass before submitting any change. echo ========== Running unit tests. +if [[ -z `which coverage` ]];then + echo "coverage is not installed. Installing ..." + pip install coverage +fi coverage run --source=gcp_variant_transforms setup.py test echo ========== Running pylint. +if [[ -z `which pylint` ]];then + echo "pylint is not installed. Installing ..." + pip install pylint +fi pylint gcp_variant_transforms