forked from siteserver/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
68 lines (52 loc) · 1.54 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
# https://docs.microsoft.com/azure/devops/pipelines
pool:
vmImage: 'windows-2019'
variables:
solution: 'siteserver.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
version: 6.10.$(Build.BuildNumber)
steps:
- task: DotNetCoreInstaller@0
displayName: install dotnet
inputs:
version: '3.0.100-preview5-011568'
- task: NuGetToolInstaller@1
displayName: install nuget
inputs:
versionSpec:
checkLatest: true
- script: dotnet restore $(solution)
displayName: dotnet restore
- script: nuget restore src/SiteServer.Cli/packages.config -PackagesDirectory ./packages
displayName: nuget restore SiteServer.Cli
- script: nuget restore src/SiteServer.Web/packages.config -PackagesDirectory ./packages
displayName: nuget restore SiteServer.Web
- task: DotNetCoreCLI@2
displayName: dotnet build
inputs:
command: 'build'
projects: '$(solution)'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: dotnet test
inputs:
command: 'test'
projects: '**/*Tests/*.csproj'
arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'
- script: dotnet pack /p:PackageVersion=$(version)
displayName: dotnet pack
- task: NodeTool@0
displayName: install node.js
inputs:
versionSpec: '8.x'
- script: npm install gulp -g
displayName: install gulp
- script: npm install
displayName: npm install
- script: gulp build
displayName: gulp build
- script: nuget pack build/SS.CMS.nuspec
displayName: nuget pack
- script: gulp zip
displayName: gulp zip