-
Notifications
You must be signed in to change notification settings - Fork 230
/
appveyor.yml
73 lines (68 loc) · 2.35 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "{branch}-{build}"
skip_tags: true
shallow_clone: true
cache:
- C:\ProgramData\chocolatey\bin -> .\build\appveyor_install.ps1
- C:\ProgramData\chocolatey\lib -> .\build\appveyor_install.ps1
- C:\Users\appveyor\.ccm\repository -> .\build\appveyor_install.ps1
- C:\Users\appveyor\deps -> .\build\appveyor_install.ps1
image: Visual Studio 2022
environment:
#APPVEYOR_RDP_PASSWORD: Yy64rr9aB6IW
NUNIT_PATH: nunit3-console
BuildAllTargets: "True"
RunCodeAnalyzers: "True"
matrix:
- TARGET: net462
CI_TYPE: UNIT
PROJECT: Cassandra.Tests
- TARGET: net472
CI_TYPE: UNIT
PROJECT: Cassandra.Tests
- TARGET: net481
CI_TYPE: UNIT
PROJECT: Cassandra.Tests
- TARGET: net6
CI_TYPE: UNIT
PROJECT: Cassandra.Tests
- TARGET: net8
CI_TYPE: UNIT
PROJECT: Cassandra.Tests
- TARGET: net472
CASSANDRA_VERSION: 3.11.6
CI_TYPE: INTEGRATION
PROJECT: Cassandra.IntegrationTests
- TARGET: net462
CASSANDRA_VERSION: 3.11.6
CI_TYPE: INTEGRATION_FULL
PROJECT: Cassandra.IntegrationTests
- TARGET: net8
CASSANDRA_VERSION: 3.11.6
CI_TYPE: INTEGRATION
PROJECT: Cassandra.IntegrationTests
- TARGET: net481
CASSANDRA_VERSION: 3.11.6
CI_TYPE: INTEGRATION
PROJECT: Cassandra.IntegrationTests
#init:
# - ps: $blockRdp = $True; iex ((New-Object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- ps: .\build\appveyor_install.ps1
build_script:
- ps: dotnet --info
- ps: dotnet restore src
test_script:
- ps: |
if(${env:CI_TYPE} -eq "INTEGRATION_FULL")
{
dotnet test src\${env:PROJECT}\${env:PROJECT}.csproj -v n -c Release -f $env:TARGET --filter "(TestCategory!=long)&(TestCategory!=memory)&(TestCategory!=realclusterlong)" --logger:Appveyor
}
else
{
dotnet test src\${env:PROJECT}\${env:PROJECT}.csproj -v n -c Release -f $env:TARGET --filter "(TestCategory!=long)&(TestCategory!=memory)&(TestCategory!=realcluster)&(TestCategory!=realclusterlong)" --logger:Appveyor
}
on_failure:
- ps: |
Write-Host "Build failed"