[ci] Add Windows CI support, provided by AppVeyor (#308)

This commit is contained in:
Ebrahim Byagowi 2016-09-01 17:31:16 +04:30 committed by Behdad Esfahbod
parent 3d976d20f1
commit c4f36b04e3
3 changed files with 30 additions and 1 deletions

1
README
View File

@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/behdad/harfbuzz.svg)](https://travis-ci.org/behdad/harfbuzz)
[![Build Status](https://ci.appveyor.com/api/projects/status/4oaq58ns2h0m2soa?svg=true)](https://ci.appveyor.com/project/behdad/harfbuzz)
[![Coverage Status](https://img.shields.io/coveralls/behdad/harfbuzz.svg)](https://coveralls.io/r/behdad/harfbuzz)
[ABI Tracker](http://abi-laboratory.pro/tracker/timeline/harfbuzz/)

28
appveyor.yml Normal file
View File

@ -0,0 +1,28 @@
platform: x64
environment:
matrix:
- compiler: msvc
ARCH: amd64
CFG: release
- compiler: msvc
ARCH: x86
CFG: release
- compiler: msvc
ARCH: amd64
CFG: debug
- compiler: msvc
ARCH: x86
CFG: debug
install:
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-ragel"
build_script:
- '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %ARCH%'
- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; PATH=$PATH:/mingw64/bin:/mingw32/bin; ./autogen.sh; make distdir"
- cd harfbuzz-*\win32
- nmake /f Makefile.vc CFG=%CFG% DIRECTWRITE=1
# disable automatic tests
test: off

View File

@ -23,4 +23,4 @@ $(HB_GOBJECT_ENUM_GENERATED_SOURCES): ..\src\hb-gobject-enums.h.tmpl ..\src\hb-g
# Create the build directories
$(CFG)\$(PLAT)\harfbuzz $(CFG)\$(PLAT)\harfbuzz-icu $(CFG)\$(PLAT)\harfbuzz-gobject $(CFG)\$(PLAT)\util:
@-mkdir $@
@-mkdir -p $@