-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
33 lines (27 loc) · 3.11 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
24
25
26
27
28
29
30
31
32
33
version: 1.0.{build}
os: Visual Studio 2017
environment:
COVERALLS_REPO_TOKEN:
secure: lGGIj3WmsCghU2af2Y3pzOeViNSEv2MeV24znk/Jjx0mT7S+d+uv6sS5ziCylvKT
SONARQUBE_TOKEN:
secure: /H4KJSrixYtM+HjJ/gCb9QogeN6WmmvdlsUQby/BVISc44V1EcZ078ZydkwMC+ep
install:
- nuget restore
build_script:
- msbuild "Cdfs.sln" /verbosity:normal
test_script:
- c:\users\appveyor\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe -oldStyle -register:user -filter:"+[*]* -[*Tests*]* -[Moq*]*" -target:"dotnet.exe" -targetargs:"test /p:DebugType=full ./Tests/NameNodeTests\NameNodeTests.csproj" -output:coverage.xml -returntargetcode -mergeoutput
- c:\users\appveyor\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe -oldStyle -register:user -filter:"+[*]* -[*Tests*]* -[Moq*]*" -target:"dotnet.exe" -targetargs:"test /p:DebugType=full ./Tests/DataNodeTests\DataNodeTests.csproj" -output:coverage.xml -returntargetcode -mergeoutput
- c:\users\appveyor\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe -oldStyle -register:user -filter:"+[*]* -[*Tests*]* -[Moq*]*" -target:"dotnet.exe" -targetargs:"test /p:DebugType=full ./Tests/DFSClientTests\DFSClientTests.csproj" -output:coverage.xml -returntargetcode -mergeoutput
- c:\users\appveyor\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe -oldStyle -register:user -filter:"+[*]* -[*Tests*]* -[Moq*]*" -target:"dotnet.exe" -targetargs:"test /p:DebugType=full ./Tests/ProtocolsTests\ProtocolsTests.csproj" -output:coverage.xml -returntargetcode -mergeoutput
- c:\users\appveyor\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe -oldStyle -register:user -filter:"+[*]* -[*Tests*]* -[Moq*]*" -target:"dotnet.exe" -targetargs:"test /p:DebugType=full ./Tests/NameNodeIntegrationTests\NameNodeIntegrationTests.csproj" -output:coverage.xml -returntargetcode -mergeoutput
- c:\users\appveyor\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe -oldStyle -register:user -filter:"+[*]* -[*Tests*]* -[Moq*]*" -target:"dotnet.exe" -targetargs:"test /p:DebugType=full ./Tests/DataNodeIntegrationTests\DataNodeIntegrationTests.csproj" -output:coverage.xml -returntargetcode -mergeoutput
- c:\users\appveyor\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe -oldStyle -register:user -filter:"+[*]* -[*Tests*]* -[Moq*]*" -target:"dotnet.exe" -targetargs:"test /p:DebugType=full ./Tests/DFSClientIntegrationTests\DFSClientIntegrationTests.csproj" -output:coverage.xml -returntargetcode -mergeoutput
after_test:
# Upload coverage to coveralls
- c:\users\appveyor\.nuget\packages\coveralls.io\1.4.2\tools\coveralls.net.exe --opencover coverage.xml
# Run sonarqube
- choco install "msbuild-sonarqube-runner" -y
- MSBuild.SonarQube.Runner.exe begin /k:"Cdfs" /d:"sonar.host.url=https://sonarqube.com" /d:"sonar.login=%SONARQUBE_TOKEN%" /d:"sonar.organization=drcjt-github" /d:"sonar.exclusions=**/*.js" /d:"sonar.cs.opencover.reportsPaths=coverage.xml" /d:"sonar.coverage.exclusions=**/*Tests*"
- msbuild "Cdfs.sln" /verbosity:normal
- MSBuild.SonarQube.Runner.exe end /d:"sonar.login=%SONARQUBE_TOKEN%"