mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 02:29:08 +00:00
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
environment:
|
|
CTEST_OUTPUT_ON_FAILURE: 1
|
|
matrix:
|
|
- Build: msvc
|
|
Config: Debug
|
|
- Build: msvc
|
|
Config: Release
|
|
- Build: mingw
|
|
Config: Debug
|
|
- Build: mingw
|
|
Config: Release
|
|
|
|
install:
|
|
- ps: |
|
|
if ($env:Build -eq "mingw") {
|
|
# Install MinGW.
|
|
$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
|
|
&7z x -oC:\ mingw.7z > $null
|
|
}
|
|
- set PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH%;C:\mingw64\bin
|
|
|
|
before_build:
|
|
- ps: |
|
|
if ($env:Build -eq "mingw") {
|
|
# Remove path to Git bin directory from PATH because it breaks MinGW config.
|
|
$env:PATH = $env:PATH -replace "C:\\Program Files \(x86\)\\Git\\bin",""
|
|
$generator = "-GMinGW Makefiles"
|
|
}
|
|
echo "-DCMAKE_BUILD_TYPE=$env:Config"
|
|
cmake -DFMT_EXTRA_TESTS=ON "-DCMAKE_BUILD_TYPE=$env:Config" "$generator" .
|
|
|
|
build_script:
|
|
- ps: |
|
|
if ($env:Build -eq "mingw") {
|
|
mingw32-make -j4
|
|
} else {
|
|
msbuild /m:4 /p:Config=$env:Config FORMAT.sln
|
|
}
|
|
|
|
test_script:
|
|
- ps: |
|
|
if ($env:Build -eq "mingw") {
|
|
mingw32-make test
|
|
} else {
|
|
msbuild RUN_TESTS.vcxproj
|
|
}
|
|
|
|
on_failure:
|
|
- appveyor PushArtifact Testing/Temporary/LastTest.log
|
|
- appveyor AddTest test
|