fmtlegacy/appveyor.yml

51 lines
1.2 KiB
YAML
Raw Normal View History

2014-07-10 02:44:32 +00:00
environment:
matrix:
- build: msvc
- build: mingw
2014-07-10 14:38:55 +00:00
generator: -GMinGW Makefiles
2014-07-10 02:44:32 +00:00
2014-05-16 15:55:12 +00:00
configuration:
- Debug
- Release
install:
2014-07-10 15:18:24 +00:00
- set
2014-07-10 13:33:20 +00:00
# Install MinGW.
- ps: |
if ($env:build -eq "mingw") {
2014-07-10 14:00:26 +00:00
$url = "http://sourceforge.net/projects/mingw-w64/files/"
$url += "Toolchains%20targetting%20Win64/Personal%20Builds/"
$url += "mingw-builds/4.9.0/threads-win32/seh/"
$url += "x86_64-4.9.0-release-win32-seh-rt_v3-rev2.7z/download"
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile mingw.7z
2014-07-10 13:50:14 +00:00
&7z x -oC:\ mingw.7z > $null
2014-07-10 13:33:20 +00:00
}
2014-07-10 14:31:54 +00:00
- set PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH%;C:\mingw64\bin
2014-07-10 00:32:32 +00:00
before_build:
- ps: |
if ($env:build -eq "mingw") {
2014-07-10 15:18:24 +00:00
$env:PATH = $env:PATH -replace "C:[\\/]Program Files (x86)[\\/]Git[\\/]bin",""
}
cmake -DFMT_EXTRA_TESTS=ON "$env:generator" .
2014-04-24 19:58:45 +00:00
2014-05-18 17:03:48 +00:00
build_script:
2014-07-10 13:39:10 +00:00
- ps: |
if ($env:build -eq "mingw") {
mingw32-make -j4
} else {
msbuild /m:4 FORMAT.sln
}
2014-04-29 14:40:42 +00:00
test_script:
2014-07-10 13:39:10 +00:00
- ps: |
if ($env:build -eq "mingw") {
mingw32-make test
} else {
msbuild RUN_TESTS.vcxproj
}
2014-05-16 15:59:54 +00:00
on_failure:
- appveyor PushArtifact Testing/Temporary/LastTest.log
- appveyor AddTest test