Add neovim 0.5 to list of test runtimes. (#3830)

* Add neovim 0.5 to list of test runtimes.

* Update testbed docker image

Co-authored-by: Horacio Sanson <horacio@allm.inc>
This commit is contained in:
Horacio Sanson
2021-08-05 08:41:34 +09:00
committed by GitHub
parent 2dd9790281
commit 3ba40b4316
3 changed files with 30 additions and 9 deletions

View File

@@ -1,8 +1,5 @@
#!/usr/bin/env bash
set -e
set -u
# Author: w0rp <devw0rp@gmail.com>
#
# This script runs tests for the ALE project. Run `./run-tests --help` for
@@ -25,6 +22,7 @@ verbose_flag=''
quiet_flag=''
run_neovim_02_tests=1
run_neovim_04_tests=1
run_neovim_05_tests=1
run_vim_80_tests=1
run_vim_82_tests=1
run_linters=1
@@ -44,6 +42,7 @@ while [ $# -ne 0 ]; do
run_vim_82_tests=0
run_neovim_02_tests=0
run_neovim_04_tests=0
run_neovim_05_tests=0
run_linters=0
shift
;;
@@ -55,6 +54,7 @@ while [ $# -ne 0 ]; do
;;
--neovim-02-only)
run_neovim_04_tests=0
run_neovim_05_tests=0
run_vim_80_tests=0
run_vim_82_tests=0
run_linters=0
@@ -62,6 +62,15 @@ while [ $# -ne 0 ]; do
;;
--neovim-04-only)
run_neovim_02_tests=0
run_neovim_05_tests=0
run_vim_80_tests=0
run_vim_82_tests=0
run_linters=0
shift
;;
--neovim-05-only)
run_neovim_02_tests=0
run_neovim_04_tests=0
run_vim_80_tests=0
run_vim_82_tests=0
run_linters=0
@@ -70,12 +79,14 @@ while [ $# -ne 0 ]; do
--vim-only)
run_neovim_02_tests=0
run_neovim_04_tests=0
run_neovim_05_tests=0
run_linters=0
shift
;;
--vim-80-only)
run_neovim_02_tests=0
run_neovim_04_tests=0
run_neovim_05_tests=0
run_vim_82_tests=0
run_linters=0
shift
@@ -83,6 +94,7 @@ while [ $# -ne 0 ]; do
--vim-82-only)
run_neovim_02_tests=0
run_neovim_04_tests=0
run_neovim_05_tests=0
run_vim_80_tests=0
run_linters=0
shift
@@ -92,13 +104,15 @@ while [ $# -ne 0 ]; do
run_vim_82_tests=0
run_neovim_02_tests=0
run_neovim_04_tests=0
run_neovim_05_tests=0
shift
;;
--fast)
run_vim_80_tests=0
run_vim_82_tests=0
run_neovim_02_tests=0
run_neovim_04_tests=1
run_neovim_04_tests=0
run_neovim_05_tests=1
shift
;;
--help)
@@ -179,6 +193,9 @@ else
echo "Docker run image ${image}:${image_tag} ready"
fi
set -e
set -u
docker tag "${image}:${image_tag}" "${image}:latest"
output_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir')
@@ -216,7 +233,8 @@ for vim in $(docker run --rm "$DOCKER_RUN_IMAGE" ls /vim-build/bin | grep '^neov
if ( [[ $vim =~ ^vim-v8.0 ]] && ((run_vim_80_tests)) ) \
|| ( [[ $vim =~ ^vim-v8.2 ]] && ((run_vim_82_tests)) ) \
|| ( [[ $vim =~ ^neovim-v0.2 ]] && ((run_neovim_02_tests)) ) \
|| ( [[ $vim =~ ^neovim-v0.4 ]] && ((run_neovim_04_tests)) ); then
|| ( [[ $vim =~ ^neovim-v0.4 ]] && ((run_neovim_04_tests)) ) \
|| ( [[ $vim =~ ^neovim-v0.5 ]] && ((run_neovim_05_tests)) ); then
echo "Starting Vim: $vim..."
file_number=$((file_number+1))
test/script/run-vader-tests $quiet_flag $verbose_flag "$vim" "$tests" \