forked from kutoga/FluentArgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
57 lines (45 loc) · 1.68 KB
/
azure-pipelines.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
pool:
vmImage: 'Ubuntu 18.04'
trigger:
batch: true
branches:
include: ['master', 'feature/*', 'fix/*']
variables:
buildConfiguration: 'Release'
sourceDirectory: '$(Build.SourcesDirectory)/source'
docDirectory: '$(Build.SourcesDirectory)/doc'
major: '0'
minor: '9'
patch: '7'
steps:
- script: dotnet tool install --global Paket --version 5.203.0
displayName: Install Paket
workingDirectory: $(sourceDirectory)
- script: dotnet restore ./FluentArgs.sln; echo ''
displayName: Restore
workingDirectory: $(sourceDirectory)
- script: dotnet build ./FluentArgs.sln --configuration $(buildConfiguration)
displayName: Build
workingDirectory: $(sourceDirectory)
- script: dotnet test ./FluentArgs.sln --configuration $(buildConfiguration) --logger trx
displayName: Test
workingDirectory: $(sourceDirectory)
- script: bash ./scripts/test_all_example_codes.sh
displayName: Test example code snippets
workingDirectory: $(docDirectory)
- script: bash ./doc/scripts/test_readme.sh
displayName: Test README.md
workingDirectory: $(Build.SourcesDirectory)
- task: PublishTestResults@2
displayName: Publish Test Results
condition: succeededOrFailed()
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
#- script: dotnet publish ./FluentArgs --configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)
# displayName: Publish
# workingDirectory: $(sourceDirectory)
- script: ~/.dotnet/tools/paket pack --version $(major).$(minor).$(patch) $(Build.ArtifactStagingDirectory)
displayName: Create Package
workingDirectory: $(sourceDirectory)/FluentArgs
- task: PublishBuildArtifacts@1