1platform: x64
2
3environment:
4  matrix:
5    - compiler: msvc
6      generator: Visual Studio 14
7      vcvarsallpath: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
8      arch: amd64
9
10    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
11      compiler: msvc
12      generator: Visual Studio 15
13      vcvarsallpath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
14      arch: x86
15
16    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
17      compiler: msvc
18      generator: Visual Studio 16
19      vcvarsallpath: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
20      arch: amd64
21
22    - compiler: msys2
23      MINGW_PREFIX: /mingw64
24      MINGW_CHOST: x86_64-w64-mingw32
25      MSYS2_ARCH: x86_64
26
27    - compiler: msys2
28      MINGW_PREFIX: /mingw32
29      MINGW_CHOST: i686-w64-mingw32
30      MSYS2_ARCH: i686
31
32
33install:
34  - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "pacman --noconfirm --force -S --needed mingw-w64-$MSYS2_ARCH-{gcc,freetype,cairo,icu,gettext,gobject-introspection,gcc,gcc-libs,glib2,graphite2,pkg-config,python2,ragel}"'
35
36build_script:
37  - set "PYTHON_ROOT=C:\python37-x64"
38  - set "PATH=%PYTHON_ROOT%;%PYTHON_ROOT%\Scripts;%PATH%"
39  - pip install --upgrade meson
40  - 'if "%compiler%"=="msvc" "%vcvarsallpath%" %arch% && meson setup build --buildtype=release -Dglib=enabled -Dfreetype=enabled -Dgdi=enabled -Ddirectwrite=enabled && meson test --print-errorlogs --suite=harfbuzz -Cbuild'
41
42  - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "curl https://raw.githubusercontent.com/mirror/mingw-w64/023eb04c396d4e8d8fcf604cfababc53dae13398/mingw-w64-headers/include/dwrite_1.h > %MINGW_PREFIX%/%MINGW_CHOST%/include/dwrite_1.h"'
43  - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; PATH=$PATH:/mingw64/bin:/mingw32/bin; ./autogen.sh --with-uniscribe --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2 --with-directwrite --with-gdi --build=%MINGW_CHOST% --host=%MINGW_CHOST% --prefix=%MINGW_PREFIX%; make -j3 check || .ci/fail.sh"'
44
45cache:
46  - c:\tools\vcpkg\installed\
47
48notifications:
49  - provider: Email
50    to:
51      - harfbuzz-bots-chatter@googlegroups.com
52    on_build_success: false
53    on_build_failure: true
54    on_build_status_changed: true
55
56# Do not build feature branch with open Pull Requests
57skip_branch_with_pr: true
58
59# disable automatic tests
60test: off
61