add mingw to appveyor matrix use MSYS makefiles generator add bash script for running mingw on appveyor add --login and fix run paths use msys style path to appveyor-mingw.sh add mingw path to /etc/fstab
diff --git a/appveyor.yml b/appveyor.yml
index d155485..00a2fd2 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -11,11 +11,17 @@ environment:
ARCH: 32
- GENERATOR: "Visual Studio 11 Win64"
ARCH: 64
+ - GENERATOR: "MSYS Makefiles"
+ ARCH: 32
build_script:
- ps: |
mkdir build
cd build
- cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON .. -G"$env:GENERATOR"
- cmake --build . --config RelWithDebInfo
+ if ($env:GENERATOR -ne "MSYS Makefiles") {
+ cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON .. -G"$env:GENERATOR"
+ cmake --build . --config RelWithDebInfo
+ } else {
+ C:\MinGW\msys\1.0\bin\sh --login /c/projects/libgit2/script/appveyor-mingw.sh
+ }
test_script:
- ps: ctest -V .
diff --git a/script/appveyor-mingw.sh b/script/appveyor-mingw.sh
new file mode 100755
index 0000000..aaafa49
--- /dev/null
+++ b/script/appveyor-mingw.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+cd `dirname "$0"`/../build
+echo 'C:\MinGW\ /MinGW' > /etc/fstab
+cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON .. -G"$GENERATOR"
+cmake --build . --config RelWithDebInfo