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
This commit is contained in:
Tony Kelman 2015-03-03 10:53:26 -08:00
parent bdf0e73450
commit ac5fad2780
2 changed files with 14 additions and 2 deletions

View File

@ -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 .

6
script/appveyor-mingw.sh Executable file
View File

@ -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