2 # A full clone takes 30 seconds, depth 20 takes 5 seconds.
12 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
13 VCVARS_BAT: "\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat\" x86"
15 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
16 VCVARS_BAT: "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars32.bat\""
21 if ($env:TOOLCHAIN -eq "mingw") {
22 $env:PATH="C:\Mingw\bin;C:\Mingw\MSYS\1.0\bin;$env:PATH"
23 } elseif ($env:TOOLCHAIN -eq "mingw64") {
24 $env:PATH="C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin;C:\msys64\usr\bin;$env:PATH"
25 } elseif ($env:TOOLCHAIN -eq "cygwin") {
26 $env:PATH="C:\cygwin64\bin;$env:PATH"
27 } elseif ($env:TOOLCHAIN -eq "llvm") {
28 $env:PATH="C:\Program Files\LLVM\bin;c:\msys64\usr\bin;$env:PATH"
30 $env:PATH="c:\msys64\usr\bin;$env:PATH"
32 - if "%TOOLCHAIN%"=="mingw" bash -c "echo 'c:/mingw /mingw' >> /etc/fstab"
33 - if "%TOOLCHAIN%"=="mingw" bash -c 'mingw-get install libz-dev'
34 - if "%TOOLCHAIN%"=="mingw64" bash -c 'pacman -Sy --noconfirm zlib-devel'
35 - if "%TOOLCHAIN%"=="cygwin" C:\cygwin64\setup-x86_64.exe -qnNdO -R C:/cygwin64 -s http://cygwin.mirror.constant.com -l C:/cygwin64/var/cache/setup -P file-devel -P zlib-devel
36 - bash -c 'time ./bootstrap xapian-core'
37 - if "%TOOLCHAIN%"=="msvc" call %VCVARS_BAT%
38 - if "%TOOLCHAIN%"=="msvc" bash -c 'wget https://zlib.net/zlib-1.2.11.tar.gz && tar -xf zlib-1.2.11.tar.gz && mv zlib-1.2.11 zlib'
39 - if "%TOOLCHAIN%"=="msvc" cd zlib
40 - if "%TOOLCHAIN%"=="msvc" nmake -nologo -f win32\Makefile.msc
41 - if "%TOOLCHAIN%"=="msvc" cd ..
42 # Fetch pre-built unicode-data.cc to avoid having to get working tclsh.
43 - curl https://oligarchy.co.uk/xapian/patches/unicode-data.cc > xapian-core\unicode\unicode-data.cc
45 - if "%TOOLCHAIN%"=="mingw" bash -c 'time ./configure --disable-documentation'
46 - if "%TOOLCHAIN%"=="mingw64" bash -c 'time ./configure --disable-documentation --host=i686-pc-mingw32'
47 - if "%TOOLCHAIN%"=="cygwin" bash -c 'time ./configure --disable-documentation'
48 - if "%TOOLCHAIN%"=="msvc" bash -c 'time ./configure --disable-documentation CC="cl -nologo" CXX="/c/projects/xapian/INST/share/automake-1.15/compile cl -nologo" CXXFLAGS="-EHsc" CPPFLAGS=-I$PWD/zlib AR=lib LDFLAGS=-L$PWD/zlib'
49 - bash -c 'time make -j2' < nul
51 - bash -c 'time make check VERBOSE=1' < nul