From eed1ab8a8a2c26b05b9d97b96ea546db0d830402 Mon Sep 17 00:00:00 2001 From: Nima Mousavi Date: Thu, 8 Mar 2018 13:34:00 -0500 Subject: [PATCH] Install pylint and coverage if needed. Tested: manual ./run_presubmit.sh --- run_presubmit.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/run_presubmit.sh b/run_presubmit.sh index 86623e2ec..804bd89cd 100755 --- a/run_presubmit.sh +++ b/run_presubmit.sh @@ -18,7 +18,16 @@ 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