forked from datastax/csharp-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
49 lines (46 loc) · 1.67 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
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 2017
environment:
appveyor_build_worker_cloud: gce
NUNIT_PATH: nunit3-console
matrix:
- TARGET: net452
CI_TYPE: UNIT
PROJECT: Cassandra.Tests
- TARGET: netcoreapp2.0
CI_TYPE: UNIT
PROJECT: Cassandra.Tests
- TARGET: net452
CASSANDRA_VERSION: 3.11.2
CI_TYPE: INTEGRATION
PROJECT: Cassandra.IntegrationTests
- TARGET: netcoreapp2.0
CASSANDRA_VERSION: 3.11.2
CI_TYPE: INTEGRATION
PROJECT: Cassandra.IntegrationTests
- TARGET: net452
CASSANDRA_VERSION: 2.2.7
CI_TYPE: INTEGRATION
PROJECT: Cassandra.IntegrationTests
install:
- ps: .\build\appveyor_install.ps1
build_script:
- ps: dotnet restore src
- ps: dotnet build src\Cassandra.sln -c Release
test_script:
- ps: dotnet test src\${env:PROJECT}\${env:PROJECT}.csproj -c Release -f $env:TARGET --filter "(TestCategory!=long)&(TestCategory!=memory)" --logger "trx;LogFileName=..\..\..\TestResult.xml"
on_failure:
- ps: |
Write-Host "Build failed"
on_finish:
- ps: |
xml tr tools\trx-to-junit.xslt TestResult.xml > ResultsJUnit.xml
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\ResultsJUnit.xml))