summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2017-02-07 17:46:21 +0000
committerReuben Thomas <rrt@sc3d.org>2017-02-07 23:40:16 +0000
commit730e6bf5a0eea0b00565f0f8875c4a0618f4c675 (patch)
tree5f614d77d97356f9b946dec90bace4953ab03c92
parent647a6300757e141a53a7e7ceb207f6211cb55009 (diff)
downloadenchant-730e6bf5a0eea0b00565f0f8875c4a0618f4c675.tar.gz
Add appveyor.yml
-rw-r--r--appveyor.yml20
-rwxr-xr-xbuild-aux/appveyor-install.sh12
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