-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
27 lines (20 loc) · 1.12 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
version: '{branch}-{build}'
image: Visual Studio 2019
environment:
JAVA_HOME: "C:\\Program Files\\Java\\jdk13"
init:
- cmd: git config --global core.autocrlf true
install:
- cmd: git submodule update --init --recursive
- cmd: dotnet tool install --global dotnet-sonarscanner
before_build:
- cmd: dotnet --version
- cmd: dotnet restore --verbosity m
- cmd: dotnet-sonarscanner begin /k:"CSF.ORM" /v:AppVeyor_build_%APPVEYOR_BUILD_NUMBER% /o:craigfowler-github /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login=%SONARCLOUD_SECRET_KEY% /d:sonar.cs.nunit.reportsPaths=%APPVEYOR_BUILD_FOLDER%\Tests\*\TestResults\TestResults.xml /d:sonar.cs.opencover.reportsPaths=%APPVEYOR_BUILD_FOLDER%\Tests\*\TestResults\coverage.opencover.xml
build_script:
- cmd: dotnet build
test_script:
- cmd: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=\"json,opencover\" /p:CoverletOutput=\"TestResults/\" --test-adapter-path:. --logger:\"nunit\"
- cmd: dotnet test -c NetFramework
after_test:
- cmd: dotnet-sonarscanner end /d:"sonar.login=%SONARCLOUD_SECRET_KEY%"