From 4f1a32bcaffe347277f3ecd7d5027b6542db6106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Fri, 6 Oct 2017 15:28:50 +0200 Subject: [PATCH] Attempt to add code coverage to CI... --- appveyor.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..03ca315e --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,10 @@ +before_build: + - nuget restore +build_script: + - msbuild /verbosity:quiet "SafeExamBrowser" +test_script: + - .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"SafeExamBrowser.Core.UnitTests -noshadow" -output:"coverage.xml" -filter:"+[SafeExamBrowser.Core*]* -[SafeExamBrowser.Core.UnitTests*]*" +after_test: + - "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%" + - pip install codecov + - codecov -f "coverage.xml" -t YourUploadToken