fmt/appveyor.yml

48 lines
1.1 KiB
YAML
Raw Normal View History

2014-07-10 02:44:32 +00:00
environment:
matrix:
- build: msvc
- build: mingw
2014-07-10 13:33:20 +00:00
generator: -G "MinGW Makefiles"
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
# 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:27:14 +00:00
- dir
- dir C:\
2014-07-09 20:16:39 +00:00
- set PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH%;C:\wingw64\bin
2014-07-10 00:32:32 +00:00
before_build:
2014-07-10 14:02:59 +00:00
- ps: 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