Run Vint and custom checks together with just --linters-only
This commit is contained in:
parent
ccfed164bc
commit
3c5b6d1825
40
run-tests
40
run-tests
@ -27,8 +27,7 @@ quiet_flag=''
|
|||||||
run_neovim_02_tests=1
|
run_neovim_02_tests=1
|
||||||
run_neovim_03_tests=1
|
run_neovim_03_tests=1
|
||||||
run_vim_tests=1
|
run_vim_tests=1
|
||||||
run_vint=1
|
run_linters=1
|
||||||
run_custom_checks=1
|
|
||||||
|
|
||||||
while [ $# -ne 0 ]; do
|
while [ $# -ne 0 ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
@ -42,51 +41,31 @@ while [ $# -ne 0 ]; do
|
|||||||
;;
|
;;
|
||||||
--neovim-only)
|
--neovim-only)
|
||||||
run_vim_tests=0
|
run_vim_tests=0
|
||||||
run_vint=0
|
run_linters=0
|
||||||
run_custom_checks=0
|
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--neovim-02-only)
|
--neovim-02-only)
|
||||||
run_neovim_03_tests=0
|
run_neovim_03_tests=0
|
||||||
run_vim_tests=0
|
run_vim_tests=0
|
||||||
run_vint=0
|
run_linters=0
|
||||||
run_custom_checks=0
|
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--neovim-03-only)
|
--neovim-03-only)
|
||||||
run_neovim_02_tests=0
|
run_neovim_02_tests=0
|
||||||
run_vim_tests=0
|
run_vim_tests=0
|
||||||
run_vint=0
|
run_linters=0
|
||||||
run_custom_checks=0
|
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--vim-only)
|
--vim-only)
|
||||||
run_neovim_02_tests=0
|
run_neovim_02_tests=0
|
||||||
run_neovim_03_tests=0
|
run_neovim_03_tests=0
|
||||||
run_vint=0
|
run_linters=0
|
||||||
run_custom_checks=0
|
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--no-vint)
|
--linters-only)
|
||||||
run_vint=0
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
--vint-only)
|
|
||||||
run_vim_tests=0
|
run_vim_tests=0
|
||||||
run_neovim_02_tests=0
|
run_neovim_02_tests=0
|
||||||
run_neovim_03_tests=0
|
run_neovim_03_tests=0
|
||||||
run_custom_checks=0
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
--no-custom-checks)
|
|
||||||
run_custom_checks=0
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
--custom-checks-only)
|
|
||||||
run_vim_tests=0
|
|
||||||
run_neovim_02_tests=0
|
|
||||||
run_neovim_03_tests=0
|
|
||||||
run_vint=0
|
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--)
|
--)
|
||||||
@ -110,8 +89,7 @@ if [ $# -ne 0 ]; then
|
|||||||
tests="$*"
|
tests="$*"
|
||||||
|
|
||||||
# Don't run other tools when targeting tests.
|
# Don't run other tools when targeting tests.
|
||||||
run_custom_checks=0
|
run_linters=0
|
||||||
run_vint=0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Delete .swp files in the test directory, which cause Vim 8 to hang.
|
# Delete .swp files in the test directory, which cause Vim 8 to hang.
|
||||||
@ -138,14 +116,12 @@ for vim in $(docker run --rm "$DOCKER_RUN_IMAGE" ls /vim-build/bin | grep '^neov
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if ((run_vint)); then
|
if ((run_linters)); then
|
||||||
echo "Starting Vint..."
|
echo "Starting Vint..."
|
||||||
file_number=$((file_number+1))
|
file_number=$((file_number+1))
|
||||||
test/script/run-vint > "$output_dir/$file_number" 2>&1 &
|
test/script/run-vint > "$output_dir/$file_number" 2>&1 &
|
||||||
pid_list="$pid_list $!"
|
pid_list="$pid_list $!"
|
||||||
fi
|
|
||||||
|
|
||||||
if ((run_custom_checks)); then
|
|
||||||
echo "Starting Custom checks..."
|
echo "Starting Custom checks..."
|
||||||
file_number=$((file_number+1))
|
file_number=$((file_number+1))
|
||||||
test/script/custom-checks &> "$output_dir/$file_number" 2>&1 &
|
test/script/custom-checks &> "$output_dir/$file_number" 2>&1 &
|
||||||
|
Loading…
Reference in New Issue
Block a user