xref: /vim-8.2.3635/ci/appveyor.bat (revision f89be8de)
1@echo off
2:: Batch file for building/testing Vim on AppVeyor
3
4setlocal ENABLEDELAYEDEXPANSION
5cd %APPVEYOR_BUILD_FOLDER%
6
7cd src
8:: Filter out the progress bar from the build log
9sed -e "s/@<<$/@<< | sed -e 's#.*\\\\r.*##'/" Make_mvc.mak > Make_mvc2.mak
10
11echo "Building MSVC 64bit console Version"
12nmake -f Make_mvc2.mak CPU=AMD64 ^
13    OLE=no GUI=no IME=yes ICONV=yes DEBUG=no ^
14    FEATURES=%FEATURE%
15if not exist vim.exe (
16    echo Build failure.
17    exit 1
18)
19
20:: build MSVC huge version with python and channel support
21:: GUI needs to be last, so that testing works
22echo "Building MSVC 64bit GUI Version"
23if "%FEATURE%" == "HUGE" (
24    nmake -f Make_mvc2.mak CPU=AMD64 ^
25        OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no POSTSCRIPT=yes ^
26        PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 ^
27        PYTHON3_VER=35 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python35-x64 ^
28        FEATURES=%FEATURE%
29) ELSE (
30    nmake -f Make_mvc2.mak CPU=AMD64 ^
31        OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no ^
32        FEATURES=%FEATURE%
33)
34if not exist gvim.exe (
35    echo Build failure.
36    exit 1
37)
38.\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_msvc.txt || exit 1
39
40echo "version output MSVC console"
41.\vim --version || exit 1
42echo "version output MSVC GUI"
43type ver_msvc.txt || exit 1
44cd ..
45