mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-05 04:37:50 +01:00
22
appveyor.yml
22
appveyor.yml
@@ -119,28 +119,28 @@ after_build:
|
|||||||
- ps: |
|
- ps: |
|
||||||
$line='-------------------------------------------------------------------------------------';
|
$line='-------------------------------------------------------------------------------------';
|
||||||
$find='c:\cygwin\bin\find.exe';
|
$find='c:\cygwin\bin\find.exe';
|
||||||
$arg=". -type f -name '*.cpp' -exec c:\cygwin\bin\grep -n -H $word {} ;";
|
$arg1=". -type f -name '*.cpp' -exec c:\cygwin\bin\grep -n -H ";
|
||||||
|
$arg2=" {} ;"
|
||||||
|
|
||||||
Write-Host -ForegroundColor Yellow $line;
|
Write-Host -ForegroundColor Yellow $line;
|
||||||
$word='FIXME'
|
$word='FIXME'
|
||||||
Start-Process -NoNewWindow -Wait -FilePath $find -Args $arg -RSO "cout" -RSE "cerr";
|
Start-Process -NoNewWindow -Wait -FilePath $find -Args "$arg1 $word $arg2" -RSO "cout" -RSE "cerr";
|
||||||
Get-Content cout; Get-Content cerr;
|
Get-Content cout; Get-Content cerr;
|
||||||
Write-Host;Write-Host;
|
Write-Host;Write-Host;
|
||||||
|
|
||||||
Write-Host -ForegroundColor Yellow $line;
|
Write-Host -ForegroundColor Yellow $line;
|
||||||
$word='TODO'
|
$word='TODO'
|
||||||
Start-Process -NoNewWindow -Wait -FilePath $find -Args $arg -RSO "cout" -RSE "cerr";
|
Start-Process -NoNewWindow -Wait -FilePath $find -Args "$arg1 $word $arg2" -RSO "cout" -RSE "cerr";
|
||||||
Get-Content cout; Get-Content cerr;
|
Get-Content cout; Get-Content cerr;
|
||||||
Write-Host;Write-Host;
|
Write-Host;Write-Host;
|
||||||
|
|
||||||
Write-Host -ForegroundColor Yellow $line;
|
Write-Host -ForegroundColor Yellow $line;
|
||||||
$word='HACK'
|
$word='HACK'
|
||||||
Start-Process -NoNewWindow -Wait -FilePath $find -Args $arg -RSO "cout" -RSE "cerr";
|
Start-Process -NoNewWindow -Wait -FilePath $find -Args "$arg1 $word $arg2" -RSO "cout" -RSE "cerr";
|
||||||
Get-Content cout; Get-Content cerr;
|
Get-Content cout; Get-Content cerr;
|
||||||
Write-Host;Write-Host;
|
Write-Host;Write-Host;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- buildwin %builder% build %linkmode% %configuration% %platform% %samples% %tests% msbuild %verbosity% %logger%
|
- buildwin %builder% build %linkmode% %configuration% %platform% %samples% %tests% msbuild %verbosity% %logger%
|
||||||
|
|
||||||
@@ -188,29 +188,33 @@ test_script:
|
|||||||
|
|
||||||
if (Test-Path -Path $path) {
|
if (Test-Path -Path $path) {
|
||||||
$runs += 1;
|
$runs += 1;
|
||||||
Add-AppveyorTest -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$builder $env:Platform $env:Configuration $env:linkmode '|' $tab $tab $component;
|
||||||
Write-Host -ForegroundColor Yellow $line;
|
Write-Host -ForegroundColor Yellow $line;
|
||||||
|
|
||||||
|
$started = Get-Date
|
||||||
$process = Start-Process -PassThru -NoNewWindow -Wait -FilePath "$path" -Args "-all" -RSO "cout" -RSE "cerr";
|
$process = Start-Process -PassThru -NoNewWindow -Wait -FilePath "$path" -Args "-all" -RSO "cout" -RSE "cerr";
|
||||||
|
$ended = Get-Date
|
||||||
|
$millisec = (stoped -started).milliseconds
|
||||||
|
|
||||||
Get-Content cout; Get-Content cerr;
|
Get-Content cout; Get-Content cerr;
|
||||||
|
|
||||||
if ($process.ExitCode -gt 0)
|
if ($process.ExitCode -gt 0)
|
||||||
{
|
{
|
||||||
$fails += 1;$failedTests += $component + ', ';
|
$fails += 1;$failedTests += $component + ', ';
|
||||||
Add-AppveyorTest -Name $component -Outcome 'Failed'
|
Add-AppveyorTest -Framework 'CppUnit' -Name $component -Outcome 'Failed' -Duration $millisec
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Add-AppveyorTest -Name $component -Outcome 'Passed'
|
Add-AppveyorTest -Framework 'CppUnit' -Name $component -Outcome 'Passed' -Duration $millisec
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Add-AppveyorTest -Name $component -Outcome 'Skipped'
|
Add-AppveyorTest -Framework 'CppUnit' -Name $component -Outcome 'Skipped'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Write-Host $runs' runs, ' $fails' fails'
|
Write-Host $runs' runs, ' $fails' fails'
|
||||||
|
|||||||
Reference in New Issue
Block a user