blob: 6732c8e41a36802e77e99e1416b346e3d2d4e95e [file] [log] [blame]
Bram Moolenaar8ea05de2020-12-17 20:27:26 +01001name: GitHub CI
2
Bram Moolenaarb5b77372020-12-18 13:31:31 +01003on:
4 push:
5 branches: ['**']
6 pull_request:
Bram Moolenaar8ea05de2020-12-17 20:27:26 +01007
Yegappan Lakshmanan7f4a6282021-12-25 11:20:30 +00008# Cancels all previous workflow runs for pull requests that have not completed.
9concurrency:
10 # The concurrency group contains the workflow name and the branch name for
11 # pull requests or the commit hash for any other events.
12 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
13 cancel-in-progress: true
14
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010015jobs:
16 linux:
Bram Moolenaar0fa09672021-02-13 17:08:33 +010017 runs-on: ubuntu-18.04
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010018
19 env:
20 CC: ${{ matrix.compiler }}
21 TEST: test
22 SRCDIR: ./src
23 LEAK_CFLAGS: -DEXITFREE
24 LOG_DIR: ${{ github.workspace }}/logs
25 TERM: xterm
26 DISPLAY: ':99'
Bram Moolenaar9aff9702020-12-21 13:37:28 +010027 DEBIAN_FRONTEND: noninteractive
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010028
29 strategy:
30 fail-fast: false
31 matrix:
32 features: [tiny, small, normal, huge]
33 compiler: [clang, gcc]
34 extra: [none]
35 include:
36 - features: tiny
37 compiler: clang
38 extra: nogui
39 - features: tiny
40 compiler: gcc
41 extra: nogui
42 - features: normal
43 shadow: ./src/shadow
44 - features: huge
45 coverage: true
46 - features: huge
47 compiler: gcc
48 coverage: true
49 extra: testgui
James McCoy2e258bd2021-10-05 19:44:04 +010050 uchar: true
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010051 - features: huge
52 compiler: clang
53 extra: asan
54 - features: huge
55 compiler: gcc
56 coverage: true
57 extra: unittests
58 - features: normal
59 compiler: gcc
60 extra: vimtags
61
62 steps:
63 - uses: actions/checkout@v2
64
65 - name: Install packages
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010066 run: |
Christian Brabandtef7be832021-06-22 18:21:19 +020067 sudo apt update && sudo apt install -y \
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010068 autoconf \
69 lcov \
70 gettext \
71 libcanberra-dev \
72 libperl-dev \
73 python-dev \
74 python3-dev \
75 liblua5.3-dev \
76 lua5.3 \
77 ruby-dev \
78 tcl-dev \
79 cscope \
80 libgtk2.0-dev \
81 desktop-file-utils \
Christian Brabandtf573c6e2021-06-20 14:02:16 +020082 libtool-bin \
83 libsodium-dev
Bram Moolenaar9aff9702020-12-21 13:37:28 +010084
ichizokdee78e12021-12-09 21:08:01 +000085 - name: Install clang-13
Bram Moolenaar9aff9702020-12-21 13:37:28 +010086 if: matrix.compiler == 'clang'
87 run: |
88 wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
89 . /etc/lsb-release
ichizokdee78e12021-12-09 21:08:01 +000090 sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-13 main"
91 sudo apt-get install -y clang-13 llvm-13
92 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 100
93 sudo update-alternatives --set clang /usr/bin/clang-13
94 sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-13 100
ichizok0d47ad42022-01-11 13:05:26 +000095 sudo update-alternatives --install /usr/bin/asan_symbolize asan_symbolize /usr/bin/asan_symbolize-13 100
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010096
97 - name: Set up environment
98 run: |
99 mkdir -p "${LOG_DIR}"
100 mkdir -p "${HOME}/bin"
101 echo "${HOME}/bin" >> $GITHUB_PATH
102 (
103 echo "LINUX_VERSION=$(uname -r)"
104 echo "NPROC=$(getconf _NPROCESSORS_ONLN)"
105 echo "SND_DUMMY_DIR=${HOME}/snd-dummy"
106 echo "TMPDIR=${{ runner.temp }}"
107
108 case "${{ matrix.features }}" in
109 tiny|small)
110 echo "TEST=testtiny"
111 if ${{ contains(matrix.extra, 'nogui') }}; then
112 echo "CONFOPT=--disable-gui"
113 fi
114 ;;
115 normal)
116 ;;
117 huge)
118 echo "TEST=scripttests test_libvterm"
119 echo "CONFOPT=--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp"
120 ;;
121 esac
122
123 if ${{ matrix.coverage == true }}; then
James McCoy2e258bd2021-10-05 19:44:04 +0100124 CFLAGS="$CFLAGS --coverage -DUSE_GCOV_FLUSH"
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100125 echo "LDFLAGS=--coverage"
126 fi
James McCoy2e258bd2021-10-05 19:44:04 +0100127 if ${{ matrix.uchar == true }}; then
128 CFLAGS="$CFLAGS -funsigned-char"
129 fi
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100130 if ${{ contains(matrix.extra, 'testgui') }}; then
131 echo "TEST=-C src testgui"
132 fi
133 if ${{ contains(matrix.extra, 'unittests') }}; then
134 echo "TEST=unittests"
135 fi
136 if ${{ contains(matrix.extra, 'asan') }}; then
137 echo "SANITIZER_CFLAGS=-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize-recover=all -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer"
138 echo "ASAN_OPTIONS=print_stacktrace=1 log_path=${LOG_DIR}/asan"
139 echo "UBSAN_OPTIONS=print_stacktrace=1 log_path=${LOG_DIR}/ubsan"
140 echo "LSAN_OPTIONS=suppressions=${GITHUB_WORKSPACE}/src/testdir/lsan-suppress.txt"
141 fi
142 if ${{ contains(matrix.extra, 'vimtags') }}; then
143 echo "TEST=-C runtime/doc vimtags VIMEXE=../../${SRCDIR}/vim"
144 fi
James McCoy2e258bd2021-10-05 19:44:04 +0100145 echo "CFLAGS=$CFLAGS"
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100146 ) >> $GITHUB_ENV
147
148 - name: Set up system
149 run: |
150 if [[ ${CC} = clang ]]; then
151 # Use llvm-cov instead of gcov when compiler is clang.
152 ln -fs /usr/bin/llvm-cov ${HOME}/bin/gcov
153 fi
154 # Setup lua5.3 manually since its package doesn't provide alternative.
155 # https://bugs.launchpad.net/ubuntu/+source/lua5.3/+bug/1707212
156 if [[ ${CONFOPT} =~ luainterp ]]; then
157 sudo update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 10
158 fi
159 sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0
160 sudo usermod -a -G audio "${USER}"
161 sudo bash ci/setup-xvfb.sh
162
163 - name: Cache snd-dummy
164 uses: actions/cache@v2
165 with:
166 path: ${{ env.SND_DUMMY_DIR }}
167 key: linux-${{ env.LINUX_VERSION }}-snd-dummy
168
169 - name: Set up snd-dummy
170 run: |
171 if [[ ! -e ${SND_DUMMY_DIR}/snd-dummy.ko ]]; then
172 bash ci/build-snd-dummy.sh
173 fi
174 cd "${SND_DUMMY_DIR}"
175 sudo insmod soundcore.ko
176 sudo insmod snd.ko
177 sudo insmod snd-pcm.ko
178 sudo insmod snd-dummy.ko
179
180 - name: Check autoconf
181 if: contains(matrix.extra, 'unittests')
182 run: |
183 make -C src autoconf
184
185 - name: Set up shadow dir
186 if: matrix.shadow
187 run: |
188 make -C src shadow
189 echo "SRCDIR=${{ matrix.shadow }}" >> $GITHUB_ENV
190 echo "SHADOWOPT=-C ${{ matrix.shadow }}" >> $GITHUB_ENV
191
192 - name: Configure
193 run: |
194 ./configure --with-features=${{ matrix.features }} ${CONFOPT} --enable-fail-if-missing
195 # Append various warning flags to CFLAGS.
Bram Moolenaar9aff9702020-12-21 13:37:28 +0100196 sed -i -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
197 sed -i -f ci/config.mk.${CC}.sed ${SRCDIR}/auto/config.mk
ichizokdee78e12021-12-09 21:08:01 +0000198 if [[ ${CC} = clang ]]; then
199 # Suppress some warnings produced by clang 12 and later.
200 sed -i -f ci/config.mk.clang-12.sed ${SRCDIR}/auto/config.mk
201 fi
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100202
203 - name: Build
204 if: (!contains(matrix.extra, 'unittests'))
205 run: |
206 make ${SHADOWOPT} -j${NPROC}
207
208 - name: Check version
209 if: (!contains(matrix.extra, 'unittests'))
210 run: |
211 "${SRCDIR}"/vim --version
212 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
213 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
214
215 - name: Test
216 timeout-minutes: 20
217 run: |
218 do_test() { sg audio "sg $(id -gn) '$*'"; }
219 do_test make ${SHADOWOPT} ${TEST}
220
ichizok0d47ad42022-01-11 13:05:26 +0000221 # - name: Coveralls
222 # if: matrix.coverage && success() && github.event_name != 'pull_request'
223 # env:
224 # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
225 # COVERALLS_PARALLEL: true
226 # TRAVIS_JOB_ID: ${{ github.run_id }}
227 # run: |
228 # sudo apt-get install -y python3-setuptools python3-wheel
229 # sudo -H pip3 install pip -U
230 # # needed for https support for coveralls building cffi only works with gcc, not with clang
231 # CC=gcc pip3 install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1
232 # ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100233
ichizok0d47ad42022-01-11 13:05:26 +0000234 - name: Generate gcov files
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100235 if: matrix.coverage && success()
Bram Moolenaare5492602020-12-22 19:05:33 +0100236 run: |
237 cd "${SRCDIR}"
ichizok0d47ad42022-01-11 13:05:26 +0000238 find . -type f -name '*.gcno' -exec gcov -pb {} + || true
239
240 - name: Codecov
241 if: matrix.coverage && success()
242 uses: codecov/codecov-action@v2
243 with:
244 flags: ${{ matrix.features }}-${{ matrix.compiler }}-${{ matrix.extra }}
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100245
246 - name: ASan logs
247 if: contains(matrix.extra, 'asan') && !cancelled()
248 run: |
249 for f in $(grep -lR '#[[:digit:]]* *0x[[:digit:]a-fA-F]*' "${LOG_DIR}"); do
ichizok0d47ad42022-01-11 13:05:26 +0000250 asan_symbolize -l "$f"
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100251 false # in order to fail a job
252 done
253
ichizok0d47ad42022-01-11 13:05:26 +0000254 # coveralls:
255 # runs-on: ubuntu-18.04
Bram Moolenaar18fefdd2021-09-19 17:55:16 +0200256 #
ichizok0d47ad42022-01-11 13:05:26 +0000257 # needs: linux
258 # if: always() && github.event_name != 'pull_request'
Bram Moolenaar18fefdd2021-09-19 17:55:16 +0200259 #
ichizok0d47ad42022-01-11 13:05:26 +0000260 # steps:
261 # - name: Parallel finished
262 # env:
263 # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
264 # run: |
265 # curl -k "https://coveralls.io/webhook?repo_token=${COVERALLS_REPO_TOKEN}" -d "payload[build_num]=${GITHUB_RUN_ID}&payload[status]=done"
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100266
267 macos:
268 runs-on: macos-latest
269
270 env:
ichizok48c01962021-12-11 17:34:19 +0000271 CC: clang
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100272 TEST: test
273 SRCDIR: ./src
274 LEAK_CFLAGS: -DEXITFREE
275 TERM: xterm
276
277 strategy:
278 fail-fast: false
279 matrix:
ichizok48c01962021-12-11 17:34:19 +0000280 features: [tiny, normal, huge]
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100281
282 steps:
283 - uses: actions/checkout@v2
284
285 - name: Install packages
286 env:
287 HOMEBREW_NO_AUTO_UPDATE: 1
288 run: |
289 brew install lua
290 echo "LUA_PREFIX=/usr/local" >> $GITHUB_ENV
291
292 - name: Set up environment
293 run: |
294 (
295 echo "NPROC=$(getconf _NPROCESSORS_ONLN)"
296 case "${{ matrix.features }}" in
297 tiny)
298 echo "TEST=testtiny"
299 echo "CONFOPT=--disable-gui"
300 ;;
ichizok48c01962021-12-11 17:34:19 +0000301 normal)
302 ;;
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100303 huge)
304 echo "CONFOPT=--enable-perlinterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp"
305 ;;
306 esac
307 ) >> $GITHUB_ENV
308
309 - name: Configure
310 run: |
311 ./configure --with-features=${{ matrix.features }} ${CONFOPT} --enable-fail-if-missing
312 # Append various warning flags to CFLAGS.
313 # BSD sed needs backup extension specified.
314 sed -i.bak -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
315 # On macOS, the entity of gcc is clang.
316 sed -i.bak -f ci/config.mk.clang.sed ${SRCDIR}/auto/config.mk
ichizokdee78e12021-12-09 21:08:01 +0000317 # Suppress some warnings produced by clang 12 and later.
318 if clang --version | grep -qs 'Apple clang version \(1[3-9]\|[2-9]\)\.'; then
319 sed -i.bak -f ci/config.mk.clang-12.sed ${SRCDIR}/auto/config.mk
320 fi
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100321
322 - name: Build
Bram Moolenaar9aff9702020-12-21 13:37:28 +0100323 env:
Bram Moolenaared1e4c92020-12-28 15:46:47 +0100324 LC_ALL: C
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100325 run: |
326 make -j${NPROC}
327
328 - name: Check version
329 run: |
330 "${SRCDIR}"/vim --version
331 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
332 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
333
334 - name: Test
335 timeout-minutes: 20
336 run: |
337 make ${TEST}
338
339 windows:
340 runs-on: windows-latest
341
342 env:
343 VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
344 # Interfaces
345 # Lua
346 LUA_VER: 54
347 LUA_VER_DOT: '5.4'
348 LUA_RELEASE: 5.4.0
349 LUA32_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win32_dllw6_lib.zip
350 LUA64_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win64_dllw6_lib.zip
351 LUA_DIR: D:\Lua
352 # Python 2
353 PYTHON_VER: 27
354 PYTHON_VER_DOT: '2.7'
355 # Python 3
356 PYTHON3_VER: 38
357 PYTHON3_VER_DOT: '3.8'
358 # Other dependencies
359 # winpty
360 WINPTY_URL: https://github.com/rprichard/winpty/releases/download/0.4.3/winpty-0.4.3-msvc2015.zip
361 # Escape sequences
362 COL_RED: "\x1b[31m"
363 COL_GREEN: "\x1b[32m"
364 COL_YELLOW: "\x1b[33m"
365 COL_RESET: "\x1b[m"
366
367 strategy:
368 fail-fast: false
369 matrix:
370 toolchain: [msvc, mingw]
371 arch: [x64, x86]
372 features: [HUGE, NORMAL]
373 include:
374 - arch: x64
375 vcarch: amd64
376 warch: x64
377 bits: 64
378 msystem: MINGW64
379 cygreg: registry
380 pyreg: ""
381 - arch: x86
382 vcarch: x86
383 warch: ia32
384 bits: 32
385 msystem: MINGW32
386 cygreg: registry32
387 pyreg: "-32"
388 exclude:
389 - toolchain: msvc
390 arch: x64
391 features: NORMAL
392 - toolchain: mingw
393 arch: x86
394 features: NORMAL
395
396 steps:
Bram Moolenaar53f7fcc2021-07-28 20:10:16 +0200397 - name: Initialize
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100398 id: init
399 shell: bash
400 run: |
401 git config --global core.autocrlf input
402 python_dir=$(cat "/proc/${{ matrix.cygreg }}/HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/${PYTHON_VER_DOT}/InstallPath/@")
403 python3_dir=$(cat "/proc/${{ matrix.cygreg }}/HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/${PYTHON3_VER_DOT}${{ matrix.pyreg }}/InstallPath/@")
404 echo "PYTHON_DIR=$python_dir" >> $GITHUB_ENV
405 echo "PYTHON3_DIR=$python3_dir" >> $GITHUB_ENV
406
407 - uses: msys2/setup-msys2@v2
408 if: matrix.toolchain == 'mingw'
409 with:
410 msystem: ${{ matrix.msystem }}
411 release: false
412
413 - uses: actions/checkout@v2
414
415 - name: Create a list of download URLs
416 shell: cmd
417 run: |
418 type NUL > urls.txt
419 echo %LUA_RELEASE%>> urls.txt
420 echo %WINPTY_URL%>> urls.txt
421
422 - name: Cache downloaded files
423 uses: actions/cache@v2
424 with:
425 path: downloads
426 key: ${{ runner.os }}-${{ matrix.bits }}-${{ hashFiles('urls.txt') }}
427
428 - name: Download dependencies
429 shell: cmd
430 run: |
431 path C:\Program Files\7-Zip;%path%
432 if not exist downloads mkdir downloads
433
434 echo %COL_GREEN%Download Lua%COL_RESET%
435 call :downloadfile %LUA${{ matrix.bits }}_URL% downloads\lua.zip
436 7z x downloads\lua.zip -o%LUA_DIR% > nul || exit 1
437
438 echo %COL_GREEN%Download winpty%COL_RESET%
439 call :downloadfile %WINPTY_URL% downloads\winpty.zip
440 7z x -y downloads\winpty.zip -oD:\winpty > nul || exit 1
441 copy /Y D:\winpty\${{ matrix.warch }}\bin\winpty.dll src\winpty${{ matrix.bits }}.dll
442 copy /Y D:\winpty\${{ matrix.warch }}\bin\winpty-agent.exe src\
443
444 goto :eof
445
446 :downloadfile
447 :: call :downloadfile <URL> <localfile>
448 if not exist %2 (
449 curl -f -L %1 -o %2
450 )
451 if ERRORLEVEL 1 (
452 rem Retry once.
453 curl -f -L %1 -o %2 || exit 1
454 )
455 goto :eof
456
457 - name: Copy src directory to src2
458 shell: cmd
459 run: |
460 xcopy src src2\ /E > nul
461
462 - name: Build (MSVC)
463 if: matrix.toolchain == 'msvc'
464 shell: cmd
465 run: |
466 call "%VCVARSALL%" ${{ matrix.vcarch }}
467 cd src
468 :: Filter out the progress bar from the build log
469 sed -e "s/@<<$/@<< | sed -e 's#.*\\\\r.*##'/" Make_mvc.mak > Make_mvc2.mak
470 if "${{ matrix.features }}"=="HUGE" (
471 nmake -nologo -f Make_mvc2.mak ^
472 FEATURES=${{ matrix.features }} ^
473 GUI=yes IME=yes ICONV=yes VIMDLL=yes ^
474 DYNAMIC_LUA=yes LUA=%LUA_DIR% ^
475 DYNAMIC_PYTHON=yes PYTHON=%PYTHON_DIR% ^
476 DYNAMIC_PYTHON3=yes PYTHON3=%PYTHON3_DIR%
477 ) else (
478 nmake -nologo -f Make_mvc2.mak ^
479 FEATURES=${{ matrix.features }} ^
480 GUI=yes IME=yes ICONV=yes VIMDLL=yes
481 )
482 if not exist vim${{ matrix.bits }}.dll (
483 echo %COL_RED%Build failure.%COL_RESET%
484 exit 1
485 )
486
487 - name: Build (MinGW)
488 if: matrix.toolchain == 'mingw'
489 shell: msys2 {0}
490 run: |
491 cd src
492 if [ "${{ matrix.features }}" = "HUGE" ]; then
493 mingw32-make -f Make_ming.mak -j2 \
494 FEATURES=${{ matrix.features }} \
495 GUI=yes IME=yes ICONV=yes VIMDLL=yes \
496 DYNAMIC_LUA=yes LUA=${LUA_DIR} \
497 DYNAMIC_PYTHON=yes PYTHON=${PYTHON_DIR} \
498 DYNAMIC_PYTHON3=yes PYTHON3=${PYTHON3_DIR} \
499 STATIC_STDCPLUS=yes
500 else
501 mingw32-make -f Make_ming.mak -j2 \
502 FEATURES=${{ matrix.features }} \
503 GUI=yes IME=yes ICONV=yes VIMDLL=yes \
504 STATIC_STDCPLUS=yes
505 fi
506
507 #- name: Prepare Artifact
508 # shell: cmd
509 # run: |
510 # mkdir artifacts
511 # copy src\*vim.exe artifacts
512 # copy src\vim*.dll artifacts
513 #
514 #- name: Upload Artifact
515 # uses: actions/upload-artifact@v1
516 # with:
517 # name: vim${{ matrix.bits }}-${{ matrix.toolchain }}
518 # path: ./artifacts
519
520 - name: Test
521 shell: cmd
522 timeout-minutes: 20
523 run: |
524 PATH %LUA_DIR%;C:\msys64\${{ matrix.msystem }}\bin;%PATH%;%PYTHON3_DIR%
525 call "%VCVARSALL%" ${{ matrix.vcarch }}
526 cd src
527 echo.
528 echo %COL_GREEN%vim version:%COL_RESET%
529 .\vim --version || exit 1
530
531 echo %COL_GREEN%Start testing vim in background.%COL_RESET%
532 start cmd /c "cd ..\src2\testdir & nmake -nologo -f Make_dos.mak VIMPROG=..\..\src\vim > nul & echo done>done.txt"
533
534 echo %COL_GREEN%Test gvim:%COL_RESET%
535 cd testdir
536 nmake -nologo -f Make_dos.mak VIMPROG=..\gvim || exit 1
537 cd ..
538
539 echo %COL_GREEN%Wait for vim tests to finish.%COL_RESET%
540 cd ..\src2\testdir
541 :: Wait about 10 minutes.
542 for /L %%i in (1,1,60) do (
543 if exist done.txt goto exitloop
544 timeout 10 > NUL 2>&1
545 if ERRORLEVEL 1 ping -n 11 localhost > NUL
546 )
547 set timeout=1
548 :exitloop
549
550 echo %COL_GREEN%Test results of vim:%COL_RESET%
551 if exist messages type messages
552 nmake -nologo -f Make_dos.mak report VIMPROG=..\..\src\vim || exit 1
553 if "%timeout%"=="1" (
554 echo %COL_RED%Timed out.%COL_RESET%
555 exit 1
556 )