forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Upload vsix to artifacts #5412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Upload vsix to artifacts #5412
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
bacc42e
Initial
DonJayamanne bd8adb2
Temp change
DonJayamanne d81969e
oops
DonJayamanne d8ba457
Remove smokes
DonJayamanne b749369
Compile to run smoke tests
DonJayamanne dd5644f
Run smoke tests
DonJayamanne 414c42f
Hardcode name of extension file
DonJayamanne 6ca7431
Fix names
DonJayamanne 8c5dc6d
Oops
DonJayamanne 5181cc2
Oops
DonJayamanne 2b1d7cf
Temp
DonJayamanne 99ff3ce
Temp
DonJayamanne c792746
Disable flaky tests
DonJayamanne 9abd027
Uncomment
DonJayamanne b437950
oops
DonJayamanne 401a20a
Fixes
DonJayamanne a8c2b30
Uncomment
DonJayamanne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,77 @@ | ||
| steps: | ||
| - bash: | | ||
| printenv | ||
| displayName: "Show all env vars" | ||
| condition: eq(variables['system.debug'], 'true') | ||
|
|
||
| - task: NodeTool@0 | ||
| displayName: "Use Node $(NodeVersion)" | ||
| inputs: | ||
| versionSpec: $(NodeVersion) | ||
|
|
||
| - task: UsePythonVersion@0 | ||
| displayName: "Use Python $(PythonVersion)" | ||
| inputs: | ||
| versionSpec: $(PythonVersion) | ||
|
|
||
| - task: Npm@1 | ||
| displayName: "Use NPM $(NpmVersion)" | ||
| inputs: | ||
| command: custom | ||
| verbose: true | ||
| customCommand: "install -g npm@$(NpmVersion)" | ||
|
|
||
| - task: Npm@1 | ||
| displayName: "npm ci" | ||
| inputs: | ||
| command: custom | ||
| verbose: true | ||
| customCommand: ci | ||
|
|
||
| - bash: | | ||
| echo AVAILABLE DEPENDENCY VERSIONS | ||
| echo Node Version = `node -v` | ||
| echo NPM Version = `npm -v` | ||
| echo Python Version = `python --version` | ||
| echo Gulp Version = `gulp --version` | ||
| condition: and(succeeded(), eq(variables['system.debug'], 'true')) | ||
| displayName: Show Dependency Versions | ||
|
|
||
| - task: Gulp@0 | ||
| displayName: "Compile and check for errors" | ||
| inputs: | ||
| targets: "prePublishNonBundle" | ||
| condition: and(succeeded(), eq(variables['Build'], 'false')) | ||
|
|
||
| - bash: npx tslint ./src/**/*.ts{,x} | ||
| displayName: "code hygiene" | ||
| condition: and(succeeded(), eq(variables['Build'], 'false')) | ||
|
|
||
| - bash: | | ||
| python -m pip install -U pip | ||
| python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade -r requirements.txt | ||
| failOnStderr: true | ||
| displayName: "pip install requirements" | ||
| condition: and(succeeded(), eq(variables['Build'], 'true')) | ||
|
|
||
| - bash: | | ||
| npm install -g vsce | ||
| npm run clean | ||
| npm run updateBuildNumber -- --buildNumber $BUILD_BUILDID | ||
| npm run package | ||
| displayName: "Build VSIX" | ||
| condition: and(succeeded(), eq(variables['Build'], 'true')) | ||
|
|
||
| - task: CopyFiles@2 | ||
| inputs: | ||
| contents: "*.vsix" | ||
| targetFolder: $(Build.ArtifactStagingDirectory) | ||
| displayName: "Copy VSIX" | ||
| condition: and(succeeded(), eq(variables['Build'], 'true')) | ||
|
|
||
| - task: PublishBuildArtifacts@1 | ||
| inputs: | ||
| pathtoPublish: $(Build.ArtifactStagingDirectory) | ||
| artifactName: VSIX | ||
| displayName: "Publish VSIX to Arifacts" | ||
| condition: and(succeeded(), eq(variables['Build'], 'true')) | ||
This file contains hidden or 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,73 @@ | ||
| steps: | ||
| - bash: | | ||
| printenv | ||
| displayName: "Show all env vars" | ||
| condition: eq(variables['system.debug'], 'true') | ||
|
|
||
| - task: NodeTool@0 | ||
| displayName: "Use Node $(NodeVersion)" | ||
| inputs: | ||
| versionSpec: $(NodeVersion) | ||
|
|
||
| - task: UsePythonVersion@0 | ||
| displayName: "Setup Python $(PythonVersion) for extension" | ||
| inputs: | ||
| versionSpec: $(PythonVersion) | ||
|
|
||
| - task: Npm@1 | ||
| displayName: "Use NPM $(NpmVersion)" | ||
| inputs: | ||
| command: custom | ||
| verbose: true | ||
| customCommand: "install -g npm@$(NpmVersion)" | ||
|
|
||
| - task: Npm@1 | ||
| displayName: "npm ci" | ||
| inputs: | ||
| command: custom | ||
| verbose: true | ||
| customCommand: ci | ||
|
|
||
| - bash: | | ||
| echo AVAILABLE DEPENDENCY VERSIONS | ||
| echo Node Version = `node -v` | ||
| echo NPM Version = `npm -v` | ||
| echo Python Version = `python --version` | ||
| echo Gulp Version = `gulp --version` | ||
| condition: and(succeeded(), eq(variables['system.debug'], 'true')) | ||
| displayName: Show Dependency Versions | ||
|
|
||
| - task: Gulp@0 | ||
| displayName: "Compile" | ||
| inputs: | ||
| targets: "prePublishNonBundle" | ||
| condition: succeeded() | ||
|
|
||
| # https://code.visualstudio.com/api/working-with-extensions/continuous-integration#azure-pipelines | ||
| - bash: | | ||
| set -e | ||
| /usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 & | ||
| disown -ar | ||
| displayName: "Start xvfb" | ||
| condition: and(succeeded(), eq(variables['Agent.Os'], 'Linux'), not(variables['SkipXvfb'])) | ||
|
|
||
| - task: DownloadBuildArtifacts@0 | ||
| inputs: | ||
| buildType: "current" | ||
| artifactName: "VSIX" | ||
| downloadPath: "$(Build.SourcesDirectory)" | ||
| displayName: "Restore VSIX" | ||
| condition: succeeded() | ||
|
|
||
| - task: CopyFiles@2 | ||
DonJayamanne marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| inputs: | ||
| sourceFolder: "$(Build.SourcesDirectory)/VSIX" | ||
| targetFolder: $(Build.SourcesDirectory) | ||
| displayName: "Copy VSIX" | ||
| condition: succeeded() | ||
|
|
||
| - bash: npm run testSmoke | ||
| displayName: "Run Smoke Tests" | ||
| condition: succeeded() | ||
| env: | ||
| DISPLAY: :10 | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.