blob: f10078fddb59000100664a0b14ed83ff595d0b0e [file] [log] [blame]
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +04301platform: x64
2
3environment:
4 matrix:
ebraminiob6f505c2017-12-06 13:51:04 +03305 - compiler: msvc
ebraminio7d64c0e2017-04-04 15:03:51 +04306 generator: Visual Studio 14
7 platform: Win32
8 configuration: Debug
ebraminiob6f505c2017-12-06 13:51:04 +03309 triplet: x86-windows
10 - compiler: msvc
ebraminio7d64c0e2017-04-04 15:03:51 +043011 generator: Visual Studio 14 Win64
12 platform: x64
13 configuration: Debug
ebraminiob6f505c2017-12-06 13:51:04 +033014 triplet: x64-windows
15
16 - compiler: msvc
ebraminio7d64c0e2017-04-04 15:03:51 +043017 generator: Visual Studio 14 ARM
18 platform: ARM
19 configuration: Debug
20
ebraminiob6f505c2017-12-06 13:51:04 +033021
Ebrahim Byagowi17f0dd22016-09-02 01:21:48 +043022 - compiler: msys2
Ebrahim Byagowi957e7752018-03-19 12:19:42 +033023 MINGW_PREFIX: /mingw64
Ebrahim Byagowi17f0dd22016-09-02 01:21:48 +043024 MINGW_CHOST: x86_64-w64-mingw32
25 MSYS2_ARCH: x86_64
26 - compiler: msys2
Ebrahim Byagowi957e7752018-03-19 12:19:42 +033027 MINGW_PREFIX: /mingw32
Ebrahim Byagowi17f0dd22016-09-02 01:21:48 +043028 MINGW_CHOST: i686-w64-mingw32
29 MSYS2_ARCH: i686
30
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043031install:
Ebrahim Byagowi9be80622018-09-29 02:11:05 +033032 - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "pacman --force --noconfirm -Sy && pacman --noconfirm --force -S pacman-mirrors && pacman --force -Syu --noconfirm"'
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043033 - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-ragel"
34
Ebrahim Byagowi755a0c22016-10-21 11:48:58 +033035build_script:
Ebrahim Byagowi4e3cf912018-01-01 11:17:51 +033036 - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" vcpkg install glib:%triplet% freetype:%triplet% cairo:%triplet%'
ebraminiob6f505c2017-12-06 13:51:04 +033037 - 'if "%compiler%"=="msvc" md build'
38 - 'if "%compiler%"=="msvc" cd build'
39 - 'if "%compiler%"=="msvc" set PATH=%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin;c:\msys64\mingw64\bin' # msys2 is added just for having "ragel" on PATH
40
41 - 'if "%compiler%"=="msvc" if "%platform%"=="ARM" cmake -DHB_HAVE_UNISCRIBE=ON -DHB_HAVE_DIRECTWRITE=ON -G "%generator%" ../'
Ebrahim Byagowi4e3cf912018-01-01 11:17:51 +033042 - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" cmake -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 ../'
ebraminiob6f505c2017-12-06 13:51:04 +033043
44 - 'if "%compiler%"=="msvc" msbuild harfbuzz.sln /p:Configuration=%configuration% /p:Platform=%platform%'
Ebrahim Byagowi4e3cf912018-01-01 11:17:51 +033045 - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" ctest --output-on-failure -C %configuration%'
ebraminio7d64c0e2017-04-04 15:03:51 +043046
Ebrahim Byagowi9be80622018-09-29 02:11:05 +033047 - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "pacman --noconfirm --force -Syyu mingw-w64-$MSYS2_ARCH-gcc"'
48 - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "pacman --noconfirm --force -S --needed mingw-w64-$MSYS2_ARCH-{freetype,cairo,icu,gettext,gobject-introspection,gcc,gcc-libs,glib2,graphite2,pkg-config,python2}"'
Ebrahim Byagowieb585032018-06-11 03:47:43 +043049 - '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 Byagowi957e7752018-03-19 12:19:42 +033050 - '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; make check || .ci/fail.sh"'
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043051
ebraminiob6f505c2017-12-06 13:51:04 +033052cache:
53 - c:\tools\vcpkg\installed\
ebraminiob6f505c2017-12-06 13:51:04 +033054
Ebrahim Byagowi20022572018-02-15 01:15:39 +033055notifications:
56 - provider: Email
57 to:
58 - harfbuzz-bots-chatter@googlegroups.com
Behdad Esfahboda21fceb2018-02-18 16:10:15 -080059 on_build_success: false
60 on_build_failure: true
61 on_build_status_changed: true
Ebrahim Byagowi20022572018-02-15 01:15:39 +033062
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043063# disable automatic tests
64test: off