-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
azure-pipelines.yml
58 lines (46 loc) · 1.31 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
58
trigger:
- master
- develop
pool:
vmImage: ubuntu-latest
variables:
- group: automatica.core.8
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '$(SDK_VERSION)'
- task: Bash@3
displayName: Install tools
inputs:
targetType: 'inline'
script: |
dotnet tool install automatica-cli --global 2>/dev/null
dotnet tool update automatica-cli -g 2>/dev/null
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: 'restore'
projects: '**/*.csproj'
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: 'test'
projects: '**/*[Tt]ests.csproj'
arguments: '--configuration $(BuildConfiguration) -l trx /p:CollectCoverage=true /p:CoverletOutputFormat="opencover"'
- task: AutomaticaCorePluginCli@7
displayName: Plugin build
inputs:
manifest_path: 'P3.Logic.Math.BasicOperations/automatica-manifest.json'
version: '$(AUTOMATICA_VERSION).$(Build.BuildId)'
api_key: '$(CLOUD_API_KEY)'
cloud_url: '$(CLOUD_URL)'
configuration: 'Debug$(BuildConfiguration)'
publish: true
dockerize: true
outputdirectory: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'