mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-02 15:24:57 +01:00
Use build as msbuild
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
parent
3fbd145c11
commit
83cfe05e69
36
appveyor.yml
36
appveyor.yml
@ -50,22 +50,28 @@ environment:
|
|||||||
verbosity: minimal
|
verbosity: minimal
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
- builder: 120
|
- builder: msbuild
|
||||||
|
vsver: 120
|
||||||
linkmode: shared
|
linkmode: shared
|
||||||
|
|
||||||
# - builder: 120
|
# - builder: msbuild
|
||||||
|
# vsver: 120
|
||||||
# linkmode: static_md
|
# linkmode: static_md
|
||||||
|
|
||||||
# - builder: 120
|
# - builder: msbuild
|
||||||
|
# vsver: 120
|
||||||
# linkmode: static_mt
|
# linkmode: static_mt
|
||||||
|
|
||||||
- builder: 140
|
- builder: msbuild
|
||||||
|
vsver: 140
|
||||||
linkmode: shared
|
linkmode: shared
|
||||||
|
|
||||||
# - builder: 140
|
# - builder: msbuild
|
||||||
|
# vsver: 140
|
||||||
# linkmode: static_md
|
# linkmode: static_md
|
||||||
|
|
||||||
# - builder: 140
|
# - builder: msbuild
|
||||||
|
# vsver: 140
|
||||||
# linkmode: static_mt
|
# linkmode: static_mt
|
||||||
|
|
||||||
|
|
||||||
@ -75,7 +81,7 @@ matrix:
|
|||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- ps: |
|
- ps: |
|
||||||
if ($env:builder -eq "120")
|
if ($env:vsver -eq "120")
|
||||||
{
|
{
|
||||||
if ($env:platform -eq "Win32")
|
if ($env:platform -eq "Win32")
|
||||||
{
|
{
|
||||||
@ -88,7 +94,7 @@ before_build:
|
|||||||
$env:suffix = 64
|
$env:suffix = 64
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($env:builder -eq "140")
|
if ($env:vsver -eq "140")
|
||||||
{
|
{
|
||||||
if ($env:platform -eq "Win32")
|
if ($env:platform -eq "Win32")
|
||||||
{
|
{
|
||||||
@ -142,7 +148,8 @@ after_build:
|
|||||||
|
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- buildwin %builder% build %linkmode% %configuration% %platform% %samples% %tests% msbuild %verbosity% %logger%
|
- if %builder%==msbuild (buildwin %builder% build %linkmode% %configuration% %platform% %samples% %tests% msbuild %verbosity% %logger%)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
before_test:
|
before_test:
|
||||||
@ -184,14 +191,16 @@ test_script:
|
|||||||
foreach ($component in $components) {
|
foreach ($component in $components) {
|
||||||
if ($excluded -notcontains $component)
|
if ($excluded -notcontains $component)
|
||||||
{
|
{
|
||||||
[string]$path = $component + "\testsuite\bin$suffix\TestSuite.exe";
|
if ($env:msbuild -eq "msbuild")
|
||||||
|
{
|
||||||
|
[string]$path = $component + "\testsuite\bin$suffix\TestSuite.exe";
|
||||||
|
|
||||||
if (Test-Path -Path $path) {
|
if (Test-Path -Path $path) {
|
||||||
$runs += 1;
|
$runs += 1;
|
||||||
Add-AppveyorTest -Framework 'CppUnit' -Name $component -Outcome 'Running'
|
Add-AppveyorTest -Framework 'CppUnit' -Name $component -Outcome 'Running'
|
||||||
|
|
||||||
Write-Host -ForegroundColor Yellow $line;
|
Write-Host -ForegroundColor Yellow $line;
|
||||||
Write-Host -ForegroundColor Yellow '|' $env:APPVEYOR_BUILD_VERSION $env:vs$builder $env:Platform $env:Configuration $env:linkmode '|' $tab $tab $component;
|
Write-Host -ForegroundColor Yellow '|' $env:APPVEYOR_BUILD_VERSION $env:vs$vsver $env:Platform $env:Configuration $env:linkmode '|' $tab $tab $component;
|
||||||
Write-Host -ForegroundColor Yellow $line;
|
Write-Host -ForegroundColor Yellow $line;
|
||||||
|
|
||||||
$started = Get-Date
|
$started = Get-Date
|
||||||
@ -210,7 +219,8 @@ test_script:
|
|||||||
{
|
{
|
||||||
Add-AppveyorTest -Framework 'CppUnit' -Name $component -Outcome 'Passed' -Duration $millisec
|
Add-AppveyorTest -Framework 'CppUnit' -Name $component -Outcome 'Passed' -Duration $millisec
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user