Break up the rest of the test script code into smaller files

This commit is contained in:
w0rp
2017-12-01 18:06:09 +00:00
parent 499c154272
commit 6650c9a901
5 changed files with 183 additions and 157 deletions

18
test/script/run-vint Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash -eu
exit_code=0
image=w0rp/ale
docker_flags=(--rm -v "$PWD:/testplugin" -v "$PWD/test:/home" -w /testplugin "$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