-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathazure-pipelines.yml
62 lines (59 loc) · 1.81 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
62
trigger:
- master
jobs:
- job: Build
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm ci
npm run build
npm run package
displayName: 'npm install and build'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'web-ext-artifacts/'
artifactName: extension
- job: Test
timeoutInMinutes: 5
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
ff_nightly:
firefox_base_url: "https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/"
firefox_distribution: "firefox-78.0a1.en-US.linux-x86_64.tar.bz2"
ff_75:
firefox_base_url: "https://ftp.mozilla.org/pub/devedition/releases/75.0b12/linux-x86_64/en-GB/"
firefox_distribution: "firefox-75.0b12.tar.bz2"
ff_76:
firefox_base_url: "https://ftp.mozilla.org/pub/devedition/releases/76.0b2/linux-x86_64/en-GB/"
firefox_distribution: "firefox-76.0b2.tar.bz2"
ff_77:
firefox_base_url: "https://ftp.mozilla.org/pub/devedition/releases/77.0b8/linux-x86_64/en-GB/"
firefox_distribution: "firefox-77.0b8.tar.bz2"
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
wget "$(firefox_base_url)$(firefox_distribution)"
tar -xf $(firefox_distribution)
chmod +x ./firefox/firefox-bin
npm install -g tap-xunit
npm ci
displayName: 'Setup testing environment'
- script:
MOZ_BINARY=./firefox/firefox-bin npm run test | tap-xunit > ./test-results.xml
displayName: 'Test'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: JUnit
testResultsFiles: './test-results.xml'
testRunTitle: $(Agent.JobName)