From: M. Eric Irrgang Date: Thu, 14 May 2020 08:34:19 +0000 (+0300) Subject: Make sure CI script can call /bin/env python` X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=59f90bf7ca593f852d89a0fb0fb8e58fde693084;p=alexxy%2Fgromacs.git Make sure CI script can call /bin/env python` Before calling admin/clang-tidy.sh, make sure that the wrapped tool will be able to find a Python interpreter. Refs #3528 --- diff --git a/admin/gitlab-ci/lint.gitlab-ci.yml b/admin/gitlab-ci/lint.gitlab-ci.yml index a283c5f5d6..6b6c48897b 100644 --- a/admin/gitlab-ci/lint.gitlab-ci.yml +++ b/admin/gitlab-ci/lint.gitlab-ci.yml @@ -52,6 +52,8 @@ clang-tidy:test: KUBERNETES_CPU_REQUEST: 2 KUBERNETES_MEMORY_REQUEST: 4Gi script: + # Make sure that a Python interpreter can be found for `/bin/env python` + - test -x /usr/bin/python || update-alternatives --install /usr/bin/python python /usr/bin/python3 1 # TODO (issue #3272) `master` is not appropriate for use on release-xxxx branches, how should we handle that? - REV=$(git fetch -q https://gitlab.com/gromacs/gromacs.git master && git show -s --pretty=format:"%h" `git merge-base FETCH_HEAD HEAD`) - HEAD_REV=$(git show -s --pretty=format:"%h" HEAD)