Experiment with appveyor.

This commit is contained in:
Victor Zverovich
2014-07-27 09:24:22 -07:00
parent b9c40c6af5
commit 82652f4ee2

View File

@@ -1,11 +1,13 @@
environment: environment:
matrix: matrix:
- Build: msvc - Build: msvc
Config: Debug
- Build: msvc
Config: Release
- Build: mingw - Build: mingw
Config: Debug
configuration: - Build: mingw
- Debug Config: Release
- Release
install: install:
- ps: | - ps: |
@@ -27,15 +29,15 @@ before_build:
$env:PATH = $env:PATH -replace "C:\\Program Files \(x86\)\\Git\\bin","" $env:PATH = $env:PATH -replace "C:\\Program Files \(x86\)\\Git\\bin",""
$generator = "-GMinGW Makefiles" $generator = "-GMinGW Makefiles"
} }
echo "-DCMAKE_BUILD_TYPE=$env:Configuration" echo "-DCMAKE_BUILD_TYPE=$env:Config"
cmake -DFMT_EXTRA_TESTS=ON "-DCMAKE_BUILD_TYPE=$env:Configuration" "$generator" . cmake -DFMT_EXTRA_TESTS=ON "-DCMAKE_BUILD_TYPE=$env:Config" "$generator" .
build_script: build_script:
- ps: | - ps: |
if ($env:Build -eq "mingw") { if ($env:Build -eq "mingw") {
mingw32-make -j4 mingw32-make -j4
} else { } else {
msbuild /m:4 /p:Configuration=$env:Configuration FORMAT.sln msbuild /m:4 /p:Config=$env:Config FORMAT.sln
} }
test_script: test_script: