-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
44 lines (36 loc) · 1.05 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
34
35
36
37
38
39
40
41
42
43
44
version: "1.0.{build}"
image: Visual Studio 2019
branches:
only:
- master
init:
- git config --global core.autocrlf true
before_build:
- dotnet --info
- choco install codecov
- dotnet tool install --global coverlet.console
- dotnet restore
build:
project: KonSchool.sln
verbosity: minimal
publish_wap: true
build_script:
- dotnet build
after_build:
- cmd: dotnet publish src\KonSchool.csproj --output %APPVEYOR_BUILD_FOLDER%\dist
artifacts:
- path: dist
test_script:
- coverlet tests/bin/Debug/netcoreapp3.1/KonSchool.Tests.dll --target "dotnet" --targetargs "test tests/KonSchool.Tests.csproj --no-build" --format opencover
- codecov -f "coverage.opencover.xml" -t %CODECOV_TOKEN%
deploy:
- provider: WebDeploy
server: https://konschool.scm.azurewebsites.net:443/msdeploy.axd?site=KonSchool
website: KonSchool
username: $KonSchool
password:
secure: 1kfpmAnJMc699Y32qORP2BtyaMmdmHxVdZATVRHNV24pxDlz7MjGMzHYDwo0i9Odgw+UGJVZfzr6X+h67I1aWw==
ntlm: false
remove_files: false
on:
branch: master