-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
azure-pipelines.yml
47 lines (38 loc) · 996 Bytes
/
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
# Script for Azure Pipelines
# https://docs.microsoft.com/azure/devops/pipelines
pool:
vmImage: $(vmImage)
steps:
- script: |
echo my vmImage is $(vmImage)
- task: UseDotNet@2
inputs:
packageType: 'sdk' # Options: runtime, sdk
version: '8.0.403'
includePreviewVersions: true
- script: dotnet --version
- task: NugetToolInstaller@1
- task: DotNetCoreCLI@2
inputs:
command: restore
projects: |
**/pine.csproj
**/test-elm-time.csproj
- script: dotnet run --project ./prebuild/prebuild.csproj
displayName: 'Prebuild'
workingDirectory: ./implement/
- task: DotNetCoreCLI@2
displayName: 'test'
inputs:
command: test
projects: |
**/test-elm-time.csproj
arguments: --logger trx
publishTestResults: false
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
- script: dotnet publish ./implement/pine/pine.csproj
displayName: 'publish web host'