fmtlegacy/appveyor.yml

51 lines
1.4 KiB
YAML
Raw Normal View History

2014-07-10 02:44:32 +00:00
environment:
matrix:
2014-07-10 15:41:33 +00:00
- Build: msvc
- Build: mingw
2014-07-10 02:44:32 +00:00
2014-05-16 15:55:12 +00:00
configuration:
- Debug
- Release
install:
2014-07-10 13:33:20 +00:00
- ps: |
2014-07-10 15:41:33 +00:00
if ($env:Build -eq "mingw") {
# Install 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: |
2014-07-10 15:41:33 +00:00
if ($env:Build -eq "mingw") {
2014-07-10 15:26:20 +00:00
# Remove path to Git bin directory from PATH because it breaks MinGW config.
$env:PATH = $env:PATH -replace "C:\\Program Files \(x86\)\\Git\\bin",""
2014-07-10 16:34:26 +00:00
$generator = "-GMinGW Makefiles"
}
cmake -DFMT_EXTRA_TESTS=ON "-DCMAKE_BUILD_TYPE=$env:Configuration" "$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: |
2014-07-10 15:41:33 +00:00
if ($env:Build -eq "mingw") {
2014-07-10 18:23:06 +00:00
mingw32-make -j4
2014-07-10 13:39:10 +00:00
} else {
2014-07-10 15:26:20 +00:00
msbuild /m:4 /p:Configuration=$env:Configuration FORMAT.sln
2014-07-10 13:39:10 +00:00
}
2014-04-29 14:40:42 +00:00
test_script:
2014-07-10 13:39:10 +00:00
- ps: |
2014-07-10 15:41:33 +00:00
if ($env:Build -eq "mingw") {
2014-07-10 13:39:10 +00:00
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