mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-13 12:19:25 +00:00
* Windows and Developer sources * Fixes the report path to be fully qualified * Adds the TeamCity report logger to remaining DUnitX automated tests Fixes: #14197 Build-bot: skip build:windows,developer Test-bot: skip
23 lines
407 B
ObjectPascal
23 lines
407 B
ObjectPascal
unit DUnitX.Loggers.TeamCity;
|
|
|
|
interface
|
|
|
|
procedure ReportToTeamCity;
|
|
|
|
implementation
|
|
|
|
uses
|
|
System.SysUtils;
|
|
|
|
procedure ReportToTeamCity;
|
|
var
|
|
ReportPath: string;
|
|
begin
|
|
if GetEnvironmentVariable('TEAMCITY_GIT_PATH') <> '' then
|
|
begin
|
|
ReportPath := ExtractFilePath(ParamStr(0)) + 'dunitx-results.xml';
|
|
writeln('##teamcity[importData type=''nunit'' path='''+ReportPath+''']');
|
|
end;
|
|
end;
|
|
|
|
end.
|