-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathazure-pipelines.yml
61 lines (52 loc) · 1.41 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
trigger:
- master
strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
mac:
imageName: 'macos-latest'
windows:
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
# Please use Node.js version greater than 18.0 for succussful CI test.
# TO: Multiple version CI testing
steps:
- task: NodeTool@0
inputs:
versionSpec: '18.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 ">>> Set up environment"
npm ci
- bash: |
echo ">>> Compile checker-framework-vscode"
npm run compile
# Don't have the echo below, as it masks a failure from the npm commands.
# echo ">>> Compiled checker-framework-vscode"
# cd sample
# echo ">>> Run sample integration test"
# TODO: add tests
# npm run compile
displayName: Run Tests
env:
DISPLAY: ':99.0'
- bash: |
echo ">>> Check for downloader release"
npm run get-downloader-release
if [ -f "checker-framework-languageserver-downloader.jar" ]; then
echo "Download successful."
else
echo "Download failed." && exit 1
fi
displayName: Check for downloader release
- bash: |
echo ">>> Check for vsce functionality"
npm run vsce
displayName: Check for vsce functionality