-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
48 lines (48 loc) · 1.6 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
45
46
47
48
version: '0.11.0.{build}'
image: Visual Studio 2022
branches:
only:
- master
init:
- cmd: git config --global core.autocrlf true
- cmd: net start MSSQL$SQL2019
- ps: Start-Service MySQL80
configuration:
- Release
services:
- postgresql13
nuget:
disable_publish_on_pr: true
install:
- ps: |
Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile "$env:temp\dotnet-install.ps1"
& $env:temp\dotnet-install.ps1 -Architecture x64 -Version '8.0.100' -InstallDir "$env:ProgramFiles\dotnet"
before_build:
- cmd: dotnet --version
- choco install codecov
build_script:
- cmd: dotnet build . -v quiet
test_script:
- cmd: dotnet test ./tests/MinimigTests.csproj /p:AltCover=true /p:AltCoverAssemblyExcludeFilter="xunit" /p:AltCoverAssemblyFilter="testhost|Microsoft"
after_test:
- codecov -f "./tests/coverage.net8.0.xml" -t $(codecov_token)
environment:
sql_connection: Server=(local)\SQL2019;Database=master;User ID=sa;Password=Password12!;
postgres_connection: Server=localhost;Port=5432;Database=postgres;Username=postgres;Password=Password12!;
mysql_connection: Server=localhost;Port=3306;Database=mysql;User Id=root;Password=Password12!;SSL Mode=Required;
codecov_token:
secure: lUmWvr1PcJnFJ7tR5/Y+fpuIPkc0L822Dh/NQy6EACQHZa/KY//Vwkap4lZg3yAN
artifacts:
- path: '**/*.nupkg'
skip_commits:
files:
- '**/*.md'
deploy:
- provider: NuGet
server: https://www.myget.org/F/minimig/api/v2/package
on:
branch: master
appveyor_repo_tag: true
api_key:
secure: 6xhHSsDvB9arsrSDLuynnbxaVS+BwaoJU96RfQenc5FOnUYvP8SHM6kbvrmpvja2
skip_symbols: true