Skip to content

Commit eccebb9

Browse files
committed
Refresh build script (use diagnostic verbosity when uploading coverage to Codecov and Coveralls)
1 parent a62e1d0 commit eccebb9

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

build.cake

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,14 @@ Task("Upload-Coverage-Result-Coveralls")
308308
.WithCriteria(() => isMainRepo)
309309
.Does(() =>
310310
{
311-
CoverallsNet(new FilePath(coverageFile), CoverallsNetReportType.OpenCover, new CoverallsNetSettings()
311+
using (DiagnosticVerbosity())
312312
{
313-
RepoToken = coverallsToken,
314-
UseRelativePaths = true
315-
});
313+
CoverallsNet(new FilePath(coverageFile), CoverallsNetReportType.OpenCover, new CoverallsNetSettings()
314+
{
315+
RepoToken = coverallsToken,
316+
UseRelativePaths = true
317+
});
318+
}
316319
}).OnError (exception =>
317320
{
318321
Error(exception.Message);
@@ -328,7 +331,16 @@ Task("Upload-Coverage-Result-Codecov")
328331
.WithCriteria(() => isMainRepo)
329332
.Does(() =>
330333
{
331-
Codecov(coverageFile, codecovToken);
334+
var codecovSettings = new CodecovSettings
335+
{
336+
Files = new[] { coverageFile },
337+
Token = codecovToken
338+
};
339+
340+
using (DiagnosticVerbosity())
341+
{
342+
Codecov(codecovSettings);
343+
}
332344
}).OnError (exception =>
333345
{
334346
Error(exception.Message);
@@ -540,7 +552,7 @@ Task("AppVeyor")
540552
{
541553
if (publishingError)
542554
{
543-
Warning("An error occurred during the publishing of Http-Multipart-Data-Parser. All publishing tasks have been attempted.");
555+
Warning("At least one exception occurred when executing non-essential tasks. These exceptions were ignored in order to allow the build script to complete.");
544556
}
545557
});
546558

0 commit comments

Comments
 (0)