Skip to content

Commit e064b84

Browse files
author
Benjamin Cartier
committed
Updated public build definition
1 parent a0693fb commit e064b84

File tree

2 files changed

+44
-58
lines changed

2 files changed

+44
-58
lines changed

.vsts-ci.yml

+22-27
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
phases:
2-
3-
- phase: Desktop
1+
jobs:
2+
- job: Desktop
43
variables:
5-
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
6-
NUGET_HTTP_CACHE_PATH: $(Agent.WorkFolder)\.nuget-http-cache
74
ANDROID_NDK_HOME: C:\Microsoft\AndroidNDK64\android-ndk-r15c
85
ANDROID_NDK_PATH: C:\Microsoft\AndroidNDK64\android-ndk-r15c
96
AndroidNdkDirectory: C:\Microsoft\AndroidNDK64\android-ndk-r15c
10-
CombinedConfiguration: Release|Any CPU
11-
CI_Build: true
127

13-
queue:
8+
pool:
149
name: "Hosted VS2017"
1510

11+
workspace:
12+
clean: all
13+
1614
steps:
1715
- checkout: self
1816
clean: true
1917
lfs: true
2018

21-
- task: GitVersion@3
19+
- task: gittools.gitversion.gitversion-task.GitVersion@4
2220
inputs:
2321
updateAssemblyInfo: false
2422

@@ -110,27 +108,28 @@ phases:
110108
ArtifactName: drop
111109
ArtifactType: Container
112110

113-
- powershell: git clean -fdx
114-
displayName: Cleanup git repo
115-
condition: always()
116-
117111
# UWP BUILD
118-
- phase: UWP
119-
variables:
120-
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
121-
NUGET_HTTP_CACHE_PATH: $(Agent.WorkFolder)\.nuget-http-cache
122-
CombinedConfiguration: Release|Any CPU
123-
CI_Build: true
124-
125-
queue:
112+
- job: UWP
113+
pool:
126114
name: "Hosted VS2017"
127115

116+
workspace:
117+
clean: all
118+
128119
steps:
129120
- checkout: self
130121
clean: true
131122
lfs: true
132-
133-
- task: GitVersion@3
123+
124+
#Fixes gitversion task
125+
- bash: |
126+
shopt -s nullglob
127+
function join_by { local IFS="$1"; shift; echo "$*"; }
128+
lib_path=$(join_by ';' $(Agent.WorkFolder)/_tasks/GitVersion*/4.0.*/lib/osx)
129+
echo LD_LIBRARY_PATH: $lib_path
130+
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$lib_path"
131+
132+
- task: gittools.gitversion.gitversion-task.GitVersion@4
134133
inputs:
135134
updateAssemblyInfo: false
136135

@@ -187,7 +186,3 @@ phases:
187186
PathtoPublish: $(build.artifactstagingdirectory)
188187
ArtifactName: drop
189188
ArtifactType: Container
190-
191-
- powershell: 'git clean -fdx'
192-
displayName: Cleanup git repo
193-
condition: always()

.vsts-qa.yml

+22-31
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
1-
phases:
2-
3-
4-
- phase: UWP
5-
variables:
6-
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
7-
NUGET_HTTP_CACHE_PATH: $(Agent.WorkFolder)\.nuget-http-cache
8-
CombinedConfiguration: Release|Any CPU
9-
CI_Build: true
10-
11-
queue:
1+
jobs:
2+
- job: UWP
3+
pool:
124
name: "Hosted VS2017"
5+
workspace:
6+
clean: all
137

148
steps:
159
- checkout: self
1610
clean: true
1711
lfs: true
1812

19-
- task: GitVersion@3
20-
inputs:
21-
updateAssemblyInfo: false
13+
- task: gittools.gitversion.gitversion-task.GitVersion@4
2214

2315
- task: NuGetToolInstaller@0
2416
inputs:
@@ -74,27 +66,30 @@ phases:
7466
ArtifactName: drop
7567
ArtifactType: Container
7668

77-
- powershell: 'git clean -fdx'
78-
displayName: Cleanup git repo
79-
condition: always()
80-
81-
82-
- phase: MacOS_Agent
83-
variables:
84-
NUGET_PACKAGES: $(Agent.WorkFolder)/.nuget
85-
NUGET_HTTP_CACHE_PATH: $(Agent.WorkFolder)/.nuget-http-cache
86-
CombinedConfiguration: Release_iOS|Any CPU
87-
88-
queue:
69+
- job: MacOS_Agent
70+
pool:
8971
name: "Hosted macOS Preview"
9072
demands:
9173
- Agent.OS -equals Darwin
74+
75+
workspace:
76+
clean: all
9277

9378
steps:
9479
- checkout: self
9580
clean: true
9681
lfs: true
97-
82+
83+
#Fixes gitversion task
84+
- bash: |
85+
shopt -s nullglob
86+
function join_by { local IFS="$1"; shift; echo "$*"; }
87+
lib_path=$(join_by ';' $(Agent.WorkFolder)/_tasks/GitVersion*/4.0.*/lib/osx)
88+
echo LD_LIBRARY_PATH: $lib_path
89+
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$lib_path"
90+
91+
- task: gittools.gitversion.gitversion-task.GitVersion@4
92+
9893
- task: NuGetToolInstaller@0
9994
inputs:
10095
versionSpec: 4.3.0
@@ -158,8 +153,4 @@ phases:
158153
PathtoPublish: $(build.artifactstagingdirectory)
159154
ArtifactName: drop
160155
ArtifactType: Container
161-
162-
- bash: 'git clean -fdx'
163-
displayName: Cleanup git repo
164-
condition: always()
165156

0 commit comments

Comments
 (0)