-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from oslabs-beta/AL/pipelines
pipelines
- Loading branch information
Showing
4 changed files
with
1,270 additions
and
20 deletions.
There are no files selected for viewing
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,53 @@ | ||
trigger: | ||
branches: | ||
include: | ||
- main | ||
tags: | ||
include: | ||
- v* | ||
- refs/tags/v* | ||
|
||
pr: | ||
branches: | ||
include: | ||
- main | ||
|
||
strategy: | ||
matrix: | ||
linux: | ||
imageName: 'ubuntu-latest' | ||
mac: | ||
imageName: 'macos-latest' | ||
|
||
pool: | ||
vmImage: $(imageName) | ||
|
||
steps: | ||
|
||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '16.x' | ||
displayName: 'Install Node.js' | ||
|
||
- bash: | | ||
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
echo ">>> Started xvfb" | ||
displayName: Start xvfb | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) | ||
|
||
- bash: | | ||
echo ">>> Run npm install and Compile vscode-test" | ||
npm install && npm run compile | ||
echo ">>> Run sample integration test" | ||
npm install && npm run compile && npm run tests | ||
displayName: Run Tests | ||
env: | ||
DISPLAY: ':99.0' | ||
|
||
- bash: | | ||
echo ">>> Publish" | ||
npm run deploy | ||
displayName: Publish | ||
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Agent.OS'], 'Linux')) | ||
env: | ||
VSCE_PAT: $(VSCE_PAT) |
Oops, something went wrong.