-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines.yml
47 lines (41 loc) · 1.16 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
schedules:
- cron: '0 18 * * *'
displayName: Daily 6PM build
branches:
include:
- main
always: true
trigger:
branches:
include:
- main
tags:
include:
- refs/tags/*
pool:
vmImage: ubuntu-latest
steps:
- task: UseNode@1
inputs:
version: '20.14.0' # Specify the version of Node.js you want to use
displayName: 'Use Node.js 20.14.0'
- 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: |
sudo apt-get update && sudo apt-get install -y build-essential
git config --global user.email $BUILD_REQUESTEDFOREMAIL
git config --global user.name "$BUILD_REQUESTEDFOR"
make test
displayName: 'Build and test with Make'
env:
DISPLAY: ':99.0'
- bash: |
echo ">>> Publish"
npm run deploy -- $(Build.SourceBranchName)
displayName: Publish
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Agent.OS'], 'Linux'))
env:
VSCE_PAT: $(VSCE_PAT)
HUSKY: 0