summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/mplint.sh
blob: 60422e5f68e791226591ac23781e5b91367a7a69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash

set -e # Fail if any command fails
set -u # Fail if any variable is unset when used

export LOGFILE=mplint_po.log
source ./tools/ci/scripts/init.sh

rm -rf mplint || true
tools/ci/scripts/retry.sh wget -O mplint-release.zip "$MPLINT_PACKAGE_URL"
unzip mplint-release.zip

read mplint_commit < mplint-version.txt
printf "Using mplint: %s\n" "$mplint_commit"

echo " " >config.h
for task in "$@"; do
    run_mplint $task
done

source ./tools/ci/scripts/exit.sh

exit 0