-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
20 lines (20 loc) · 1.06 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
init:
- git config --global core.autocrlf true
environment:
global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
SQ_TOKEN:
secure: g5CtCNUG4/4//OaQCidnKFuLThMbMGKQhFgYbCECu2AJlPeV8c9mBTNfeZZy9TpN
test: off
deploy: off
os: Visual Studio 2017
version: '1.0.{build}'
before_build:
- cmd: dotnet restore Configuration.MongoDb.sln
build_script:
- ps: if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { choco install "msbuild-sonarqube-runner" -y }
- ps: if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { MSBuild.SonarQube.Runner.exe begin /k:"midmid.configuration.mongodb" /o:"midmid" /d:"sonar.host.url=https://sonarcloud.io" /d:"sonar.login=$env:SQ_TOKEN" /d:sonar.cs.opencover.reportsPaths="$env:APPVEYOR_BUILD_FOLDER\Test-Coverage.xml" /d:sonar.cs.vstest.reportsPaths="$env:APPVEYOR_BUILD_FOLDER\TestResults\*.trx" }
- msbuild Configuration.MongoDb.sln /p:Configuration=Release
- msbuild cibuild.proj /p:Configuration=Release
- ps: if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { MSBuild.SonarQube.Runner.exe end /d:"sonar.login=$env:SQ_TOKEN" }