-
Notifications
You must be signed in to change notification settings - Fork 7
/
azure-pipelines.yml
112 lines (103 loc) · 2.91 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
variables:
buildConfiguration: 'Release'
version: '1.1.7.0'
stages:
- stage: Build_and_Test
displayName: 'Build and test projects'
jobs:
- job: 'Ubuntu'
displayName: 'Build and test project on Ubuntu platform'
pool:
vmImage: 'ubuntu-latest'
steps:
- template: azure_templates/tests.yml
- job: 'Windows'
displayName: 'Build and test project on Windows platform'
pool:
vmImage: 'windows-latest'
steps:
- template: azure_templates/windows_tests.yml
- job: 'MacOS'
displayName: 'Build and test project on MacOS platform'
pool:
vmImage: 'macOS-latest'
steps:
- template: azure_templates/tests.yml
- stage: IntelliCode
displayName: 'Train intelliCode model'
dependsOn:
- Build_and_Test
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/develop'))
jobs:
- job: 'Training'
displayName: 'Train intelliCode model'
pool:
vmImage: 'windows-latest'
steps:
- task: Visual Studio IntelliCode Team Model Training@0
inputs:
branch: 'master'
intelliCodeServiceEndpoint: 'IntelliCode'
- stage: Github_Release
displayName: 'Publish the current version to Github'
dependsOn:
- Build_and_Test
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release'))
jobs:
- job: Create
displayName: 'Create GitHub Release'
pool:
vmImage: 'ubuntu-latest'
steps:
- template: azure_templates/release_templates/create_github_release.yml
- job: linux_x64
displayName: 'Publish linux-x64 to GitHub Release'
dependsOn:
- Create
condition: succeeded()
pool:
vmImage: 'ubuntu-latest'
steps:
- template: azure_templates/release_templates/publish_github_release.yml
parameters:
Platform: linux-x64
ArchiveType: tar
FilenameExtension: tar.gz
- job: win_x64
displayName: 'Publish win-x64 to GitHub Release'
dependsOn:
- Create
condition: succeeded()
pool:
vmImage: 'windows-latest'
steps:
- template: azure_templates/release_templates/publish_github_release.yml
parameters:
Platform: win-x64
ArchiveType: zip
FilenameExtension: zip
- job: osx_x64
displayName: 'Publish osx-x64 to GitHub Release'
dependsOn:
- Create
condition: succeeded()
pool:
vmImage: 'macOS-latest'
steps:
- template: azure_templates/release_templates/publish_github_release.yml
parameters:
Platform: osx-x64
ArchiveType: zip
FilenameExtension: zip
- stage: Docker
displayName: 'Publish the current version to Dockerhub'
dependsOn:
- Github_Release
condition: succeeded()
jobs:
- job: build_push
displayName: 'Build and push docker image'
pool:
vmImage: 'ubuntu-latest'
steps:
- template: azure_templates/release_templates/docker.yml