From 59f90bf7ca593f852d89a0fb0fb8e58fde693084 Mon Sep 17 00:00:00 2001 From: "M. Eric Irrgang" Date: Thu, 14 May 2020 11:34:19 +0300 Subject: [PATCH] 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 --- admin/gitlab-ci/lint.gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.22.0