Skip to content

Commit 2257d5d

Browse files
authored
Merge pull request #56 from oslabs-beta/AL/pipelines
pipelines
2 parents fddf514 + a24d3a4 commit 2257d5d

File tree

4 files changed

+1270
-20
lines changed

4 files changed

+1270
-20
lines changed

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"--extensionTestsPath=${workspaceFolder}/test/suite/index"
2424
],
2525
"outFiles": ["${workspaceFolder}/build/**.js"],
26-
"preLaunchTask": "npm: test-compile"
26+
"preLaunchTask": "npm: compile"
2727
}
2828
]
2929
}

azure-pipelines.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
trigger:
2+
branches:
3+
include:
4+
- main
5+
tags:
6+
include:
7+
- v*
8+
- refs/tags/v*
9+
10+
pr:
11+
branches:
12+
include:
13+
- main
14+
15+
strategy:
16+
matrix:
17+
linux:
18+
imageName: 'ubuntu-latest'
19+
mac:
20+
imageName: 'macos-latest'
21+
22+
pool:
23+
vmImage: $(imageName)
24+
25+
steps:
26+
27+
- task: NodeTool@0
28+
inputs:
29+
versionSpec: '16.x'
30+
displayName: 'Install Node.js'
31+
32+
- bash: |
33+
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
34+
echo ">>> Started xvfb"
35+
displayName: Start xvfb
36+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
37+
38+
- bash: |
39+
echo ">>> Run npm install and Compile vscode-test"
40+
npm install && npm run compile
41+
echo ">>> Run sample integration test"
42+
npm install && npm run compile && npm run tests
43+
displayName: Run Tests
44+
env:
45+
DISPLAY: ':99.0'
46+
47+
- bash: |
48+
echo ">>> Publish"
49+
npm run deploy
50+
displayName: Publish
51+
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Agent.OS'], 'Linux'))
52+
env:
53+
VSCE_PAT: $(VSCE_PAT)

0 commit comments

Comments
 (0)