Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 1 | platform: x64 |
| 2 | |
| 3 | environment: |
| 4 | matrix: |
ebraminio | b6f505c | 2017-12-06 13:51:04 +0330 | [diff] [blame] | 5 | - compiler: msvc |
ebraminio | 7d64c0e | 2017-04-04 15:03:51 +0430 | [diff] [blame] | 6 | generator: Visual Studio 14 |
| 7 | platform: Win32 |
| 8 | configuration: Debug |
ebraminio | b6f505c | 2017-12-06 13:51:04 +0330 | [diff] [blame] | 9 | triplet: x86-windows |
| 10 | - compiler: msvc |
ebraminio | 7d64c0e | 2017-04-04 15:03:51 +0430 | [diff] [blame] | 11 | generator: Visual Studio 14 Win64 |
| 12 | platform: x64 |
| 13 | configuration: Debug |
ebraminio | b6f505c | 2017-12-06 13:51:04 +0330 | [diff] [blame] | 14 | triplet: x64-windows |
| 15 | |
| 16 | - compiler: msvc |
ebraminio | 7d64c0e | 2017-04-04 15:03:51 +0430 | [diff] [blame] | 17 | generator: Visual Studio 14 ARM |
| 18 | platform: ARM |
| 19 | configuration: Debug |
| 20 | |
ebraminio | b6f505c | 2017-12-06 13:51:04 +0330 | [diff] [blame] | 21 | |
Ebrahim Byagowi | 17f0dd2 | 2016-09-02 01:21:48 +0430 | [diff] [blame] | 22 | - compiler: msys2 |
Ebrahim Byagowi | 957e775 | 2018-03-19 12:19:42 +0330 | [diff] [blame] | 23 | MINGW_PREFIX: /mingw64 |
Ebrahim Byagowi | 17f0dd2 | 2016-09-02 01:21:48 +0430 | [diff] [blame] | 24 | MINGW_CHOST: x86_64-w64-mingw32 |
| 25 | MSYS2_ARCH: x86_64 |
| 26 | - compiler: msys2 |
Ebrahim Byagowi | 957e775 | 2018-03-19 12:19:42 +0330 | [diff] [blame] | 27 | MINGW_PREFIX: /mingw32 |
Ebrahim Byagowi | 17f0dd2 | 2016-09-02 01:21:48 +0430 | [diff] [blame] | 28 | MINGW_CHOST: i686-w64-mingw32 |
| 29 | MSYS2_ARCH: i686 |
| 30 | |
Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 31 | install: |
Ebrahim Byagowi | 9be8062 | 2018-09-29 02:11:05 +0330 | [diff] [blame] | 32 | - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "pacman --force --noconfirm -Sy && pacman --noconfirm --force -S pacman-mirrors && pacman --force -Syu --noconfirm"' |
Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 33 | - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-ragel" |
| 34 | |
Ebrahim Byagowi | 755a0c2 | 2016-10-21 11:48:58 +0330 | [diff] [blame] | 35 | build_script: |
Ebrahim Byagowi | 4e3cf91 | 2018-01-01 11:17:51 +0330 | [diff] [blame] | 36 | - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" vcpkg install glib:%triplet% freetype:%triplet% cairo:%triplet%' |
ebraminio | b6f505c | 2017-12-06 13:51:04 +0330 | [diff] [blame] | 37 | - '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 Byagowi | 4e3cf91 | 2018-01-01 11:17:51 +0330 | [diff] [blame] | 42 | - '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 ../' |
ebraminio | b6f505c | 2017-12-06 13:51:04 +0330 | [diff] [blame] | 43 | |
| 44 | - 'if "%compiler%"=="msvc" msbuild harfbuzz.sln /p:Configuration=%configuration% /p:Platform=%platform%' |
Ebrahim Byagowi | 4e3cf91 | 2018-01-01 11:17:51 +0330 | [diff] [blame] | 45 | - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" ctest --output-on-failure -C %configuration%' |
ebraminio | 7d64c0e | 2017-04-04 15:03:51 +0430 | [diff] [blame] | 46 | |
Ebrahim Byagowi | 9be8062 | 2018-09-29 02:11:05 +0330 | [diff] [blame] | 47 | - '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 Byagowi | eb58503 | 2018-06-11 03:47:43 +0430 | [diff] [blame] | 49 | - '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 Byagowi | 957e775 | 2018-03-19 12:19:42 +0330 | [diff] [blame] | 50 | - '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 Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 51 | |
ebraminio | b6f505c | 2017-12-06 13:51:04 +0330 | [diff] [blame] | 52 | cache: |
| 53 | - c:\tools\vcpkg\installed\ |
ebraminio | b6f505c | 2017-12-06 13:51:04 +0330 | [diff] [blame] | 54 | |
Ebrahim Byagowi | 2002257 | 2018-02-15 01:15:39 +0330 | [diff] [blame] | 55 | notifications: |
| 56 | - provider: Email |
| 57 | to: |
| 58 | - harfbuzz-bots-chatter@googlegroups.com |
Behdad Esfahbod | a21fceb | 2018-02-18 16:10:15 -0800 | [diff] [blame] | 59 | on_build_success: false |
| 60 | on_build_failure: true |
| 61 | on_build_status_changed: true |
Ebrahim Byagowi | 2002257 | 2018-02-15 01:15:39 +0330 | [diff] [blame] | 62 | |
Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 63 | # disable automatic tests |
| 64 | test: off |