diff options
-rw-r--r-- | appveyor.yml | 20 | ||||
-rwxr-xr-x | build-aux/appveyor-install.sh | 12 |
2 files changed, 32 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..c0af82b --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,20 @@ +version: "{build}" + +environment: + global: + CONFIGURE_FLAGS: --with-myspell-dir=/mingw64/share/hunspell + VERBOSE: 1 # Get test logs in output + +# FIXME: Build on mingw-w64, mingw-w32 and MSYS2 +# matrix: +# - COMPILER: MinGW-w64 +# - COMPILER: MinGW-w32 + +init: + - git config --global core.autocrlf input + +install: + - C:\msys64\usr\bin\bash.exe -l c:/projects/enchant/build-aux/appveyor-install.sh + +build_script: + - C:\msys64\usr\bin\bash.exe -lc "cd c:/projects/enchant && ./autogen.sh %CONFIGURE_FLAGS% && make && make DISTCHECK_CONFIGURE_FLAGS=%CONFIGURE_FLAGS% distcheck" diff --git a/build-aux/appveyor-install.sh b/build-aux/appveyor-install.sh new file mode 100755 index 0000000..e24836a --- /dev/null +++ b/build-aux/appveyor-install.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# Pre-install script for appveyor + +pacman --noconfirm -S glib2-devel +wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-hunspell-en-2016.11.20-2-any.pkg.tar.xz +pacman --noconfirm -U mingw-w64-x86_64-hunspell-en-2016.11.20-2-any.pkg.tar.xz +wget https://github.com/hunspell/hunspell/archive/v1.6.0.tar.gz +tar zxvf v1.6.0.tar.gz || true # Error in unpacking (symlink README before file README.md) +cd hunspell-1.6.0 && ln -s README.md README && autoreconf -vfi && ./configure --prefix=/usr && make && make install +wget https://github.com/unittest-cpp/unittest-cpp/releases/download/v1.6.1/unittest-cpp-1.6.1.tar.gz +tar zxvf unittest-cpp-1.6.1.tar.gz +cd unittest-cpp-1.6.1 && ./configure --prefix=/usr && make && make install |