blob: 7fbcf491cd1a80514ccc52d572bc3d766aa58b14 [file] [log] [blame]
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +04301platform: x64
2
3environment:
4 matrix:
Behdad Esfahbod66381fb2019-05-31 20:20:43 -07005
Ebrahim Byagowi5b9cf192019-08-11 23:07:29 +04306 #- compiler: msvc
7 # generator: Visual Studio 14
8 # platform: Win32
9 # configuration: Debug
10 # triplet: x86-windows
Behdad Esfahbod66381fb2019-05-31 20:20:43 -070011
Ebrahim Byagowi5b9cf192019-08-11 23:07:29 +043012 #- compiler: msvc
13 # generator: Visual Studio 14 Win64
14 # platform: x64
15 # configuration: Debug
16 # triplet: x64-windows
ebraminiob6f505c2017-12-06 13:51:04 +033017
18 - compiler: msvc
ebraminio7d64c0e2017-04-04 15:03:51 +043019 generator: Visual Studio 14 ARM
20 platform: ARM
21 configuration: Debug
22
ebraminiob6f505c2017-12-06 13:51:04 +033023
Ebrahim Byagowi88f9dab2019-05-29 01:55:31 +043024 # Build only
Ebrahim Byagowi88f9dab2019-05-29 01:55:31 +043025
Behdad Esfahbodf387a092019-05-31 22:12:23 -070026 #- 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
Ebrahim Byagowi88f9dab2019-05-29 01:55:31 +043032
Behdad Esfahbod66381fb2019-05-31 20:20:43 -070033 - 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
Ebrahim Byagowi88f9dab2019-05-29 01:55:31 +043046
47
Ebrahim Byagowi17f0dd22016-09-02 01:21:48 +043048 - compiler: msys2
Ebrahim Byagowi957e7752018-03-19 12:19:42 +033049 MINGW_PREFIX: /mingw64
Ebrahim Byagowi17f0dd22016-09-02 01:21:48 +043050 MINGW_CHOST: x86_64-w64-mingw32
51 MSYS2_ARCH: x86_64
Behdad Esfahbod66381fb2019-05-31 20:20:43 -070052
Ebrahim Byagowi17f0dd22016-09-02 01:21:48 +043053 - compiler: msys2
Ebrahim Byagowi957e7752018-03-19 12:19:42 +033054 MINGW_PREFIX: /mingw32
Ebrahim Byagowi17f0dd22016-09-02 01:21:48 +043055 MINGW_CHOST: i686-w64-mingw32
56 MSYS2_ARCH: i686
57
Khaled Hosnyd0847192018-10-20 00:18:36 +020058
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043059install:
Ebrahim Byagowifaf69e02019-06-01 11:02:25 +043060 - '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}"'
Khaled Hosny6a3ad242018-10-24 09:49:08 +020061 - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" vcpkg install glib:%triplet% freetype:%triplet% cairo:%triplet%'
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043062
Ebrahim Byagowi755a0c22016-10-21 11:48:58 +033063build_script:
Ebrahim Byagowi88f9dab2019-05-29 01:55:31 +043064 - '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
Khaled Hosny6a3ad242018-10-24 09:49:08 +020067 - 'if "%compiler%"=="msvc" set PATH=%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin'
Ebrahim Byagowi88f9dab2019-05-29 01:55:31 +043068 - 'if "%compiler%"=="msvc" cd build'
ebraminiob6f505c2017-12-06 13:51:04 +033069 - 'if "%compiler%"=="msvc" msbuild harfbuzz.sln /p:Configuration=%configuration% /p:Platform=%platform%'
Ebrahim Byagowi4e3cf912018-01-01 11:17:51 +033070 - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" ctest --output-on-failure -C %configuration%'
ebraminio7d64c0e2017-04-04 15:03:51 +043071
Ebrahim Byagowi88f9dab2019-05-29 01:55:31 +043072 - 'if "%compiler%"=="msvc2" cmake -G "%generator%" -Bbuild -H.'
73 - 'if "%compiler%"=="msvc2" cmake --build build --config %configuration%'
74
Ebrahim Byagowieb585032018-06-11 03:47:43 +043075 - '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"'
Ebrahim Byagowieb8bd2f2019-07-16 22:27:01 +043076 - '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"'
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043077
ebraminiob6f505c2017-12-06 13:51:04 +033078cache:
79 - c:\tools\vcpkg\installed\
ebraminiob6f505c2017-12-06 13:51:04 +033080
Ebrahim Byagowi20022572018-02-15 01:15:39 +033081notifications:
82 - provider: Email
83 to:
84 - harfbuzz-bots-chatter@googlegroups.com
Behdad Esfahboda21fceb2018-02-18 16:10:15 -080085 on_build_success: false
86 on_build_failure: true
87 on_build_status_changed: true
Ebrahim Byagowi20022572018-02-15 01:15:39 +033088
Khaled Hosny0cd7d042018-10-24 09:43:10 +020089# Do not build feature branch with open Pull Requests
90skip_branch_with_pr: true
91
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043092# disable automatic tests
93test: off