Update the minimum supported Neovim version to 0.7

This commit is contained in:
w0rp
2025-03-11 13:04:52 +00:00
parent 92753662a7
commit 564369db58
7 changed files with 30 additions and 33 deletions

View File

@@ -25,7 +25,7 @@ tests='test/*.vader test/*/*.vader test/*/*/*.vader'
# These flags are forwarded to the script for running Vader tests.
verbose_flag=''
quiet_flag=''
run_neovim_06_tests=1
run_neovim_07_tests=1
run_neovim_08_tests=1
run_vim_80_tests=1
run_vim_90_tests=1
@@ -44,7 +44,7 @@ while [ $# -ne 0 ]; do
--build-image)
run_vim_80_tests=0
run_vim_90_tests=0
run_neovim_06_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=0
run_linters=0
shift
@@ -55,7 +55,7 @@ while [ $# -ne 0 ]; do
run_linters=0
shift
;;
--neovim-06-only)
--neovim-07-only)
run_neovim_08_tests=0
run_vim_80_tests=0
run_vim_90_tests=0
@@ -63,27 +63,27 @@ while [ $# -ne 0 ]; do
shift
;;
--neovim-08-only)
run_neovim_06_tests=0
run_neovim_07_tests=0
run_vim_80_tests=0
run_vim_90_tests=0
run_linters=0
shift
;;
--vim-only)
run_neovim_06_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=0
run_linters=0
shift
;;
--vim-80-only)
run_neovim_06_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=0
run_vim_90_tests=0
run_linters=0
shift
;;
--vim-90-only)
run_neovim_06_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=0
run_vim_80_tests=0
run_linters=0
@@ -92,14 +92,14 @@ while [ $# -ne 0 ]; do
--linters-only)
run_vim_80_tests=0
run_vim_90_tests=0
run_neovim_06_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=0
shift
;;
--fast)
run_vim_80_tests=0
run_vim_90_tests=0
run_neovim_06_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=1
shift
;;
@@ -113,9 +113,9 @@ while [ $# -ne 0 ]; do
echo ' -v Enable verbose output'
echo ' -q Hide output for successful tests'
echo ' --build-image Run docker image build only.'
echo ' --neovim-only Run tests only for NeoVim'
echo ' --neovim-06-only Run tests only for NeoVim 0.2'
echo ' --neovim-08-only Run tests only for NeoVim 0.8'
echo ' --neovim-only Run tests only for Neovim'
echo ' --neovim-07-only Run tests only for Neovim 0.7'
echo ' --neovim-08-only Run tests only for Neovim 0.8'
echo ' --vim-only Run tests only for Vim'
echo ' --vim-80-only Run tests only for Vim 8.2'
echo ' --vim-90-only Run tests only for Vim 9.0'
@@ -165,7 +165,7 @@ elif [[ "$DOCKER" == podman ]]; then
arch="x86_64"
fi
else
echo "The DOCKER environnement variable must be docker or podman, not ${DOCKER}"
echo "The DOCKER environment variable must be docker or podman, not ${DOCKER}"
exit 1
fi
@@ -240,7 +240,7 @@ trap cancel_tests INT TERM
for vim in $("$DOCKER" run --rm "$DOCKER_RUN_IMAGE" ls /vim-build/bin | grep '^neovim\|^vim' ); do
if ( [[ $vim =~ ^vim-v8.0 ]] && ((run_vim_80_tests)) ) \
|| ( [[ $vim =~ ^vim-v9.0 ]] && ((run_vim_90_tests)) ) \
|| ( [[ $vim =~ ^neovim-v0.6 ]] && ((run_neovim_06_tests)) ) \
|| ( [[ $vim =~ ^neovim-v0.7 ]] && ((run_neovim_07_tests)) ) \
|| ( [[ $vim =~ ^neovim-v0.8 ]] && ((run_neovim_08_tests)) ); then
echo "Starting Vim: $vim..."
file_number=$((file_number+1))