Skip to content

Commit 81275ca

Browse files
committed
patch 7.4.1414
Problem: Appveyor only builds one feature set. Solution: Build a combination of features and GUI/console. (Christian Brabandt)
1 parent 8b37421 commit 81275ca

File tree

3 files changed

+67
-7
lines changed

3 files changed

+67
-7
lines changed

appveyor.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
version: "{build}"
22

3-
skip_tags: true
3+
environment:
4+
matrix:
5+
- FEATURE: HUGE
6+
- FEATURE: NORMAL
7+
# disabled
8+
# - FEATURE: TINY
9+
# - FEATURE: SMALL
10+
# - FEATURE: BIG
11+
12+
matrix:
13+
fast_finish: true
414

515
before_build:
616
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release'
@@ -9,12 +19,14 @@ before_build:
919
- reg copy HKLM\SOFTWARE\Python\PythonCore\2.7 HKLM\SOFTWARE\Python\PythonCore\2.7-32 /s /reg:64
1020

1121
build_script:
12-
- cd src
13-
- sed -e "s/\$(LINKARGS2)/\$(LINKARGS2) | sed -e 's#.*\\\\r.*##'/" Make_mvc.mak > Make_mvc2.mak
14-
- nmake -f Make_mvc2.mak CPU=AMD64 GUI=yes IME=yes MBYTE=yes ICONV=yes DEBUG=no PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 PYTHON3_VER=34 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python34-x64
15-
- .\gvim -u NONE -c "redir @a | ver | 0put a | wq!" ver.txt
16-
- type ver.txt
22+
- src/appveyor.bat
1723

1824
test_script:
19-
- cd testdir
25+
- cd src/testdir
26+
# Testing with MSVC gvim
2027
- nmake -f Make_dos.mak VIMPROG=..\gvim
28+
- nmake -f Make_dos.mak clean
29+
# Testing with MingW console version
30+
- nmake -f Make_dos.mak VIMPROG=..\vim
31+
32+
# vim: sw=2 sts=2 et ts=2 sr

src/appveyor.bat

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@echo off
2+
:: Batch file for building/testing Vim on AppVeyor
3+
4+
setlocal ENABLEDELAYEDEXPANSION
5+
cd %APPVEYOR_BUILD_FOLDER%
6+
7+
cd src
8+
echo "Building MinGW 32bit console version"
9+
set PATH=c:\msys64\mingw32\bin;%PATH%
10+
mingw32-make.exe -f Make_ming.mak GUI=no OPTIMIZE=speed IME=yes MBYTE=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1
11+
:: Save vim.exe before Make clean, moved back below.
12+
copy vim.exe testdir
13+
mingw32-make.exe -f Make_ming.mak clean
14+
15+
:: Build Mingw huge version with python and channel support, or
16+
:: with specified features without python.
17+
echo "Building MinGW 32bit GUI version"
18+
if "%FEATURE%" == "HUGE" (
19+
mingw32-make.exe -f Make_ming.mak OPTIMIZE=speed CHANNEL=yes GUI=yes IME=yes MBYTE=yes ICONV=yes DEBUG=no PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27 PYTHON3_VER=34 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python34 FEATURES=%FEATURE% || exit 1
20+
) ELSE (
21+
mingw32-make.exe -f Make_ming.mak OPTIMIZE=speed GUI=yes IME=yes MBYTE=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1
22+
)
23+
.\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_ming.txt
24+
25+
echo "Building MSVC 64bit console Version"
26+
sed -e "s/\$(LINKARGS2)/\$(LINKARGS2) | sed -e 's#.*\\\\r.*##'/" Make_mvc.mak > Make_mvc2.mak
27+
nmake -f Make_mvc2.mak CPU=AMD64 OLE=no GUI=no IME=yes MBYTE=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1
28+
nmake -f Make_mvc2.mak clean
29+
30+
:: build MSVC huge version with python and channel support
31+
:: GUI needs to be last, so that testing works
32+
echo "Building MSVC 64bit GUI Version"
33+
if "%FEATURE%" == "HUGE" (
34+
nmake -f Make_mvc2.mak DIRECTX=yes CPU=AMD64 CHANNEL=yes OLE=no GUI=yes IME=yes MBYTE=yes ICONV=yes DEBUG=no PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 PYTHON3_VER=34 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python34-x64 FEATURES=%FEATURE% || exit 1
35+
) ELSE (
36+
nmake -f Make_mvc2.mak CPU=AMD64 OLE=no GUI=yes IME=yes MBYTE=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1
37+
)
38+
.\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_msvc.txt
39+
40+
:: Restore vim.exe, tests will run with this.
41+
move /Y testdir\vim.exe .
42+
echo "version output MinGW"
43+
type ver_ming.txt
44+
echo "version output MVC"
45+
type ver_msvc.txt
46+
cd ..

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1414,
751753
/**/
752754
1413,
753755
/**/

0 commit comments

Comments
 (0)