-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
23 lines (19 loc) · 1.38 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
platform: Any CPU
image: Visual Studio 2017
configuration: Debug
environment:
OPENCOVER_VER: 4.6.519
XUNIT_VER: 2.2.0
COVERALLS_VER: 0.7.0
COVERALLS_REPOTOKEN:
secure: qtn72nNNETlNbJ6CRrpKvO12xOcUn2q1d+e+bVU9lCM7ZxqZqeD4V7P/uoN8tL0A
before_build:
- nuget restore
- cmd: nuget install xunit.runner.console -Version %XUNIT_VER% -OutputDirectory buildtools
- cmd: nuget install OpenCover -Version %OPENCOVER_VER% -OutputDirectory buildtools
- cmd: nuget install coveralls.net -Version %COVERALLS_VER% -OutputDirectory buildtools
build_script:
- cmd: msbuild /p:Configuration=%CONFIGURATION% HttpWebClient.sln
test_script:
- cmd: buildtools\OpenCover.%OPENCOVER_VER%\tools\OpenCover.Console.exe -register:user -target:"buildtools\xunit.runner.console.%XUNIT_VER%\tools\xunit.console.exe" -targetargs:"HttpWebClient.UnitTests\bin\%CONFIGURATION%\HttpWebClient.UnitTests.dll -noappdomain" -filter:"+[HttpWebClient]*"
- cmd: buildtools\coveralls.net.%COVERALLS_VER%\tools\csmacnz.Coveralls.exe --opencover -i ./results.xml --repoToken "%COVERALLS_REPOTOKEN%" --useRelativePaths --commitId "%APPVEYOR_REPO_COMMIT%" --commitBranch "%APPVEYOR_REPO_BRANCH%" --commitAuthor "%APPVEYOR_REPO_COMMIT_AUTHOR%" --commitEmail "%APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL%" --commitMessage "%APPVEYOR_REPO_COMMIT_MESSAGE%" --jobId "%APPVEYOR_BUILD_NUMBER%" --serviceName appveyor