From 5edb20fdfed4db6f1fff2b5708cb505c60a74d14 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Wed, 21 Sep 2016 11:48:48 -0500 Subject: [PATCH] Added CodeCov uploading. --- appveyor.yml | 5 +++++ build.cake | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 2909da65b7..db7d129dd1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,6 +20,11 @@ build_script: - ps: .\build.ps1 -Target "AppVeyor" -Platform "$env:platform" -Configuration "$env:configuration" after_build: - .\packages\JetBrains.dotMemoryUnit.2.1.20150828.125449\tools\dotMemoryUnit.exe -targetExecutable="%xunit20%\xunit.console.x86.exe" -returnTargetExitCode --"tests\Avalonia.LeakTests\bin\Release\Avalonia.LeakTests.dll" + +- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%" +- pip install codecov +- codecov -f "./artifacts/coverage.xml" + test: off artifacts: - path: artifacts\nuget\*.nupkg diff --git a/build.cake b/build.cake index 6192e0f88d..2e63e83d61 100644 --- a/build.cake +++ b/build.cake @@ -680,7 +680,7 @@ Task("Run-Unit-Tests") xUnitSettings.NoAppDomain = !isRunningOnWindows; - var openCoverOutput = artifactsDir.GetFilePath(new FilePath("./result.xml")); + var openCoverOutput = artifactsDir.GetFilePath(new FilePath("./coverage.xml")); var openCoverSettings = new OpenCoverSettings { ArgumentCustomization = openCoverArgs => openCoverArgs.AppendSwitch("-mergeoutput", "")