-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
79 lines (74 loc) · 2.01 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
name: '$(date:yyyyMMdd)$(rev:.r)'
trigger:
batch: false
branches:
include:
- main
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
sln: './GSharp.sln'
lspServerProject: './src/LanguageServer/LanguageServer.csproj'
lspClientDirectory: './src/LSP-client'
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core SDK'
inputs:
packageType: 'sdk'
useGlobalJson: true
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: $(sln)
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: $(sln)
arguments: '--configuration $(buildConfiguration)'
- task: NodeTool@0
displayName: 'Use Node version 10.14.1'
inputs:
versionSpec: 10.14.1
- task: DotNetCoreCLI@2
displayName: 'Publish LSP Server'
inputs:
command: publish
publishWebProjects: false
projects: $(lspServerProject)
arguments: '-c Release'
zipAfterPublish: false
modifyOutputPath: false
- task: Npm@1
displayName: 'Install Extension Dependencies'
inputs:
workingDir: $(lspClientDirectory)
verbose: false
- task: CopyFiles@2
displayName: 'Copy GSharp LSP Server files to LSP Client directory'
inputs:
SourceFolder: out/bin/Release/LanguageServer/publish
TargetFolder: 'src/LSP-client/out'
- script: 'npm install -g vsce'
displayName: 'Install VSCode Extensions Publisher'
- script: 'vsce package'
workingDirectory: 'src/LSP-client'
displayName: 'VSCode Extension Package'
- task: CopyFiles@2
displayName: 'Copy GSharp VSCode vsix to output directory'
inputs:
SourceFolder: 'src/LSP-client'
Contents: 'gsharplsp*.vsix'
TargetFolder: out/bin/Release/LSP-Client
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: out/bin/Release
- task: IntelliCodeTeamModels@1
inputs:
branch: 'main'