summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusalva Jesusalva <jesusalva@themanaworld.org>2024-02-08 23:45:52 +0000
committerAdministrator <admin@themanaworld.org>2024-02-08 23:45:52 +0000
commit12a287e0aa7901fb412e5b0a8c5a77c9d236eda9 (patch)
tree198d8c462c24fcc6cdbad4d77c2507739db862f8
parent7a0c3cbf9143aaa9293c1048b15dc1cd63c2ce36 (diff)
downloadmv-12a287e0aa7901fb412e5b0a8c5a77c9d236eda9.tar.gz
mv-12a287e0aa7901fb412e5b0a8c5a77c9d236eda9.tar.bz2
mv-12a287e0aa7901fb412e5b0a8c5a77c9d236eda9.tar.xz
mv-12a287e0aa7901fb412e5b0a8c5a77c9d236eda9.zip
Be slightly more smart when running mplint
Reduce some overhead on the script for a 4% speedup
-rw-r--r--.gitlab-ci.yml4
-rwxr-xr-xtools/ci/jobs/mplint.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 544257b6c..029fd0c84 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -325,9 +325,7 @@ gcc-8_unittestsbin:
mplint:
stage: lint
script:
- - ./tools/ci/jobs/mplint.sh src
- - ./tools/ci/jobs/mplint.sh po
- - ./tools/ci/jobs/mplint.sh data
+ - ./tools/ci/jobs/mplint.sh src po data
<<: *job-push
variables:
PACKAGES: gcc g++ git
diff --git a/tools/ci/jobs/mplint.sh b/tools/ci/jobs/mplint.sh
index d3508759f..573cd1c85 100755
--- a/tools/ci/jobs/mplint.sh
+++ b/tools/ci/jobs/mplint.sh
@@ -25,7 +25,9 @@ run_configure_simple
run_make
cd ..
echo " " >config.h
-run_mplint $*
+for task in "$@"; do
+ run_mplint $task
+done
source ./tools/ci/scripts/exit.sh