Files
ale/test/script/run-vint
Logan c9df465148 Add podman to launch test (#4882)
Users can set the DOCKER environnement variable to select Docker or
Podman to run the tests.

Co-authored-by: L'HOSPITAL Logan <lhospitallogan@gmail.com>
2024-12-29 13:42:04 +09:00

21 lines
447 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -u
exit_code=0
docker_flags=(--rm -v "$PWD:/testplugin" -v "$PWD/test:/home" -w /testplugin "$DOCKER_RUN_IMAGE")
echo '========================================'
echo 'Running Vint to lint our code'
echo '========================================'
echo 'Vint warnings/errors follow:'
echo
set -o pipefail
"$DOCKER" run -a stdout "${docker_flags[@]}" vint -s . || exit_code=$?
set +o pipefail
echo
exit $exit_code