236bb1b128e43ecaf70002f7b4f81b03a333a937
[platform/upstream/libHarfBuzzSharp.git] / appveyor.yml
1 platform: x64
2
3 environment:
4   matrix:
5
6     - compiler: msvc
7       generator: Visual Studio 14
8       platform: Win32
9       configuration: Debug
10       triplet: x86-windows
11
12     - compiler: msvc
13       generator: Visual Studio 14 Win64
14       platform: x64
15       configuration: Debug
16       triplet: x64-windows
17
18     - compiler: msvc
19       generator: Visual Studio 14 ARM
20       platform: ARM
21       configuration: Debug
22
23
24     # Build only
25
26     #- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
27     #  compiler: msvc2
28     #  generator: Visual Studio 12
29     #  platform: Win32
30     #  configuration: Release
31     #  triplet: x86-windows
32
33     - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
34       compiler: msvc2
35       generator: Visual Studio 15
36       platform: Win32
37       configuration: Release
38       triplet: x86-windows
39
40     - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
41       compiler: msvc2
42       generator: Visual Studio 16
43       platform: Win32
44       configuration: Release
45       triplet: x86-windows
46
47
48     - compiler: msys2
49       MINGW_PREFIX: /mingw64
50       MINGW_CHOST: x86_64-w64-mingw32
51       MSYS2_ARCH: x86_64
52
53     - compiler: msys2
54       MINGW_PREFIX: /mingw32
55       MINGW_CHOST: i686-w64-mingw32
56       MSYS2_ARCH: i686
57
58
59 install:
60   - '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}"'
61   - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" vcpkg install glib:%triplet% freetype:%triplet% cairo:%triplet%'
62
63 build_script:
64   - 'if "%compiler%"=="msvc" if "%platform%"=="ARM" cmake -Bbuild -H. -DHB_HAVE_UNISCRIBE=ON -DHB_HAVE_DIRECTWRITE=ON -G "%generator%"'
65   - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" cmake -Bbuild -H. -DHB_HAVE_UNISCRIBE=ON -DHB_HAVE_DIRECTWRITE=ON -DHB_HAVE_GLIB=ON -DHB_HAVE_FREETYPE=ON -DHB_BUILD_UTILS=ON -G "%generator%" -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake'
66
67   - 'if "%compiler%"=="msvc" set PATH=%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin'
68   - 'if "%compiler%"=="msvc" cd build'
69   - 'if "%compiler%"=="msvc" msbuild harfbuzz.sln /p:Configuration=%configuration% /p:Platform=%platform%'
70   - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" ctest --output-on-failure -C %configuration%'
71
72   - 'if "%compiler%"=="msvc2" cmake -G "%generator%" -Bbuild -H.'
73   - 'if "%compiler%"=="msvc2" cmake --build build --config %configuration%'
74
75   - '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"'
76   - '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 --build=%MINGW_CHOST% --host=%MINGW_CHOST% --prefix=%MINGW_PREFIX%; make -j3 check || .ci/fail.sh"'
77
78 cache:
79   - c:\tools\vcpkg\installed\
80
81 notifications:
82   - provider: Email
83     to:
84       - harfbuzz-bots-chatter@googlegroups.com
85     on_build_success: false
86     on_build_failure: true
87     on_build_status_changed: true
88
89 # Do not build feature branch with open Pull Requests
90 skip_branch_with_pr: true
91
92 # disable automatic tests
93 test: off