This repository has been archived by the owner on Oct 31, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
cd-squid.yml
54 lines (45 loc) · 1.75 KB
/
cd-squid.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
# set the version numbering, this results in 1.0.1 for the first build incrementing that way.
name: 1.1$(rev:.r)
trigger:
branches:
include:
- master
paths:
exclude:
- README.md
- images/*
- ci-pancakes.yml
- cd-pancakes.yml
pool:
name: Hosted VS2017
demands: msbuild
#Your build pipeline references an undefined variable named ‘BuildConfiguration’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
steps:
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 4.9.3'
inputs:
versionSpec: 4.9.3
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: 'src\**\*.sln'
- task: MSBuild@1
displayName: 'Build beta'
inputs:
solution: src/Xamarin.Forms.StateSquid.Multi/Xamarin.Forms.StateSquid.Multi.csproj
msbuildArguments: '/t:restore;build;pack /p:PackageVersion=$(Build.BuildNumber)-beta /p:PackageOutputPath=$(build.artifactstagingdirectory)/beta /p:AssemblyFileVersion=$(Build.BuildNumber) '
clean: true
- task: MSBuild@1
displayName: 'Build final'
inputs:
solution: src/Xamarin.Forms.StateSquid.Multi/Xamarin.Forms.StateSquid.Multi.csproj
msbuildArguments: '/t:restore;build;pack /p:PackageVersion=$(Build.BuildNumber) /p:PackageOutputPath=$(build.artifactstagingdirectory)/final /p:AssemblyFileVersion=$(Build.BuildNumber) '
clean: true
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder: '$(build.sourcesdirectory)'
Contents: '**\bin\$(BuildConfiguration)\**\*.nupkg'
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'