summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml4
-rwxr-xr-xtools/ci/jobs/cpplint.sh5
2 files changed, 6 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 54e521a3d..ba69c6545 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -354,7 +354,7 @@ gcc-8_unittestsbin:
linters:
stage: lint
- image: debian:buster
+ image: debian:bullseye
script:
- ./tools/ci/jobs/mplint.sh src po data
- ./tools/ci/jobs/pngcheck.sh
@@ -364,7 +364,7 @@ linters:
<<: *job-push
variables:
MPLINT_PACKAGE_URL: "$CI_API_V4_URL/projects/mana%2Fmplint/jobs/artifacts/master/download?job=package_debian10_buster"
- PACKAGES: git grep imagemagick pngcheck python unzip wget
+ PACKAGES: git grep imagemagick pngcheck python2 python3 unzip wget
tags:
- docker
diff --git a/tools/ci/jobs/cpplint.sh b/tools/ci/jobs/cpplint.sh
index 8bf769457..c8e709fbe 100755
--- a/tools/ci/jobs/cpplint.sh
+++ b/tools/ci/jobs/cpplint.sh
@@ -11,8 +11,11 @@ if [[ ! -x cpplint.py \
|| $(find cpplint.py -mtime 1 -print) ]]; then
#tools/ci/scripts/retry.sh wget "https://raw.githubusercontent.com/google/styleguide/gh-pages/cpplint/cpplint.py"
# Google no longer offers their cpplint and suggests using the following one, instead:
- tools/ci/scripts/retry.sh wget "https://raw.githubusercontent.com/cpplint/cpplint/refs/tags/1.6.1/cpplint.py"
+ tools/ci/scripts/retry.sh wget "https://raw.githubusercontent.com/cpplint/cpplint/refs/tags/2.0.0/cpplint.py"
chmod +x cpplint.py
+
+ # env python -> env python3
+ sed -i -s -e '1s/python$/python3/' cpplint.py
fi
declare -a args