-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build pipeline that builds extension vsix with server artifacts
- Loading branch information
Showing
13 changed files
with
99 additions
and
80 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ bin | |
obj | ||
node_modules | ||
out | ||
artifacts | ||
.omnisharp/ | ||
.omnisharp-*/ | ||
.vs/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
trigger: | ||
- feature/* | ||
|
||
pr: | ||
- feature/* | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- task: UseDotNet@2 | ||
displayName: 'Install .NET Core SDKs' | ||
inputs: | ||
useGlobalJson: true | ||
workingDirectory: server/ | ||
|
||
- script: dotnet build ./server/Microsoft.CodeAnalysis.LanguageServer.sln -warnaserror | ||
displayName: 'Build Microsoft.CodeAnalysis.LanguageServer.sln' | ||
|
||
- script: dotnet test ./server/Microsoft.CodeAnalysis.LanguageServer.sln --no-build | ||
displayName: 'Test Microsoft.CodeAnalysis.LanguageServer.sln' | ||
|
||
- script: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
displayName: Setup virtual display | ||
|
||
- task: NodeTool@0 | ||
displayName: 'Install Node.js 15.x' | ||
inputs: | ||
versionSpec: '15.x' | ||
|
||
- script: | | ||
npm ci | ||
npm i -g gulp | ||
displayName: 'Install dependencies' | ||
|
||
- script: npm run compile | ||
displayName: 'Compile' | ||
|
||
- script: gulp 'vsix:release:package:platform-neutral' | ||
displayName: 'Build platform-neutral extension package' | ||
|
||
- script: | | ||
npm run test | ||
npm run test:artifacts | ||
displayName: 'Run unit and integration tests' | ||
env: | ||
CODE_VERSION: 1.66.0 | ||
DISPLAY: :99.0 | ||
# Continue on error so we still upload the vsix even if tests fail. | ||
continueOnError: true | ||
|
||
- task: CopyFiles@2 | ||
displayName: 'Copy vsixes to upload directory' | ||
inputs: | ||
contents: '$(Build.SourcesDirectory)/*.vsix' | ||
targetFolder: '$(Build.SourcesDirectory)/vsix' | ||
|
||
- task: PublishPipelineArtifact@1 | ||
displayName: 'Publish VSIXs' | ||
inputs: | ||
targetPath: '$(Build.SourcesDirectory)/vsix' | ||
artifactName: 'VSIXs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
.vscode-test/** | ||
coverage/** | ||
out/** | ||
server/** | ||
src/** | ||
tasks/** | ||
test/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
.vscode-test/** | ||
coverage/** | ||
out/** | ||
server/** | ||
src/** | ||
tasks/** | ||
test/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters