-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathappveyor.yml
More file actions
19 lines (15 loc) · 834 Bytes
/
appveyor.yml
File metadata and controls
19 lines (15 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
image: Ubuntu
before_build:
- dotnet restore
build_script:
- sh: dotnet build
after_build:
- dotnet tool install --global dotnet-sonarscanner
- dotnet sonarscanner begin /k:"gbauso_GraphAPI" /o:"gbauso" /d:sonar.login="c9637c6be7788b1eb7c14f14984a08971652bfed" /d:sonar.host.url="https://sonarcloud.io"
- dotnet build
- dotnet sonarscanner end /d:sonar.login="c9637c6be7788b1eb7c14f14984a08971652bfed"
test_script:
- cd test && cd Graph.Tests
- dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov /p:Exclude=\"[Graph.API]*%2c[Graph.Infrastructure]*%2c[Graph.CrossCutting*]*%2c[Graph.Application.MessageHandler]*\"
- cd TestResults
- bash <(curl -s https://codecov.io/bash) -f coverage.info -t 7b7d9ee8-1384-4dc7-a6b8-771cde0fb11a || echo "Codecov did not collect coverage reports"