-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
35 lines (35 loc) · 1.09 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
35 lines (35 loc) · 1.09 KB
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
name: $(Rev:r)
jobs:
- job: Build
strategy:
matrix:
Windows:
vmImage: 'windows-latest'
Linux:
vmImage: 'ubuntu-latest'
MacOS:
vmImage: 'macOS-latest'
pool:
vmImage: $(vmImage)
variables:
BUILD_ID: $(BUILD.BUILDNUMBER)
CI: true
EQUINOX_INTEGRATION_SKIP_EVENTSTORE: true
EQUINOX_INTEGRATION_SKIP_COSMOS: true
steps:
- script: dotnet build -c Release
displayName: dotnet build
# exit code 8 signifies one or more assemblies did not have any non-skipped tests
# CI env does not provide docker-compose simulated stores, which means most store tests are skipped
- script: dotnet test -c Release --no-build --report-xunit-trx --ignore-exit-code 8 --results-directory tests/trx
displayName: dotnet test
- task: PublishTestResults@2
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: 'tests/trx/*.trx'
condition: always()
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: 'artifacts/nupkg'
artifactName: 'nupkg'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))