Commit 32e79170 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Refactor prepare-and-run-pylint.sh to use ci-support.sh

parent ff8fa207
Loading
Loading
Loading
Loading
+3 −16
Original line number Diff line number Diff line
@@ -2,15 +2,10 @@

set -e

if [ "$py_version" == "" ]; then
  py_version=3
fi

if [ "$PY_EXE" == "" ]; then
  PY_EXE=python${py_version}
fi
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/ci-support.sh
source ci-support.sh

ci_support="https://gitlab.tiker.net/inducer/ci-support/raw/master"
build_py_project

curl -L -O -k "${ci_support}/run-pylint.py"

@@ -18,14 +13,6 @@ if ! test -f .pylintrc.yml; then
  curl -o .pylintrc.yml "${ci_support}/.pylintrc-default.yml"
fi

if test "$USE_CONDA_BUILD" == "1"; then
  curl -L -O -k "${ci_support}/build-py-project-within-miniconda.sh"
  source build-py-project-within-miniconda.sh
else
  curl -L -O -k "${ci_support}/build-py-project.sh"
  source build-py-project.sh
fi

# <2.5 version bound put in place out of an abundance of cautiousness, no particular reason
# 2020-02-02 AK
$PY_EXE -m pip install "pylint<2.5" PyYAML