[honey] Add named constants for spelling key prefixes
[xapian.git] / .appveyor.yml
blob1a60a7a0ddc865bd7bb8e458ddcbbd57a7d8c3b1
1 skip_tags: true
2 # A full clone takes 30 seconds, depth 20 takes 5 seconds.
3 clone_depth: 20
4 environment:
5   global:
6     AUTOMATED_TESTING: 1
7   matrix:
8   - TOOLCHAIN: mingw
9   - TOOLCHAIN: mingw64
10   - TOOLCHAIN: cygwin
11   - TOOLCHAIN: msvc
12     APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
13     VCVARS_BAT: "\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat\" x86"
14   - TOOLCHAIN: msvc
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\""
17 platform:
18   - x86
19 install:
20   - ps: >-
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"
29       } else {
30         $env:PATH="c:\msys64\usr\bin;$env:PATH"
31       }
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
44 build_script:
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
50 test_script:
51   - bash -c 'time make check VERBOSE=1' < nul