forked from datastax/csharp-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
64 lines (57 loc) · 1.76 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
version: "{branch}-{build}"
skip_tags: true
shallow_clone: true
cache:
- C:\ProgramData\chocolatey\bin -> appveyor_install.ps1
- C:\ProgramData\chocolatey\lib -> appveyor_install.ps1
- C:\Users\appveyor\.ccm\repository -> appveyor_install.ps1
- C:\Users\appveyor\deps -> appveyor_install.ps1
- C:\Users\appveyor\ccm -> appveyor_install.ps1
os: Previous Visual Studio 2015
platform:
- Any CPU
configuration:
- Release
environment:
NUNIT_PATH: nunit3-console
matrix:
- TARGET: net452
CI_TYPE: UNIT
- TARGET: netcoreapp1.0
CI_TYPE: UNIT
- TARGET: net452
CASSANDRA_VERSION: 3.0.9
CI_TYPE: INTEGRATION
- TARGET: netcoreapp1.0
CASSANDRA_VERSION: 3.0.9
CI_TYPE: INTEGRATION
- TARGET: net452
CASSANDRA_VERSION: 2.2.7
CI_TYPE: INTEGRATION
install:
- ps: .\appveyor_install.ps1
build:
project: src/Cassandra.sln
verbosity: minimal
test:
assemblies:
- src/Cassandra.Tests/bin/$(configuration)/Cassandra.Tests.dll
- src/Cassandra.IntegrationTests/bin/$(configuration)/Cassandra.IntegrationTests.dll
categories:
except:
- long
- duration
test_script:
- dotnet restore
- IF "%CI_TYPE%" == "UNIT" dotnet test src\Cassandra.Tests -c Release -f %TARGET% --result=TestResult.xml
- IF "%CI_TYPE%" == "INTEGRATION" dotnet test src\Cassandra.IntegrationTests -c Release -f %TARGET% --where "cat=short" --result=TestResult.xml
after_test:
- ps: >-
if($true)
{
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit3/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestResult.xml))
}
on_failure:
- ps: >-
Write-Host "Build failed"