forked from datastax/csharp-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
74 lines (70 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
74
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 2019
environment:
NUNIT_PATH: nunit3-console
BuildAllTargets: "True"
RunCodeAnalyzers: "True"
matrix:
- TARGET: net462
CI_TYPE: UNIT
PROJECT: Cassandra.Tests
- TARGET: net452
CI_TYPE: UNIT
PROJECT: Cassandra.Tests
- TARGET: netcoreapp2.1
CI_TYPE: UNIT
PROJECT: Cassandra.Tests
- TARGET: netcoreapp3.1
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: netcoreapp3.1
CASSANDRA_VERSION: 3.11.6
CI_TYPE: INTEGRATION
PROJECT: Cassandra.IntegrationTests
- TARGET: net452
CASSANDRA_VERSION: 2.2.7
CI_TYPE: INTEGRATION
PROJECT: Cassandra.IntegrationTests
- TARGET: netcoreapp2.1
CASSANDRA_VERSION: 2.2.7
CI_TYPE: INTEGRATION
PROJECT: Cassandra.IntegrationTests
- TARGET: net48
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'))
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"