forked from mozilla/libdweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
40 lines (38 loc) · 1.25 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
trigger:
- master
jobs:
- job: Test
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
ff_nightly:
firefox_base_url: "https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/"
firefox_distribution: "firefox-73.0a1.en-US.linux-x86_64.tar.bz2"
ff_71:
firefox_base_url: "https://ftp.mozilla.org/pub/devedition/releases/71.0b12/linux-x86_64/en-GB/"
firefox_distribution: "firefox-71.0b12.tar.bz2"
ff_72:
firefox_base_url: "https://ftp.mozilla.org/pub/devedition/releases/72.0b2/linux-x86_64/en-GB/"
firefox_distribution: "firefox-72.0b2.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 install
displayName: 'Setup testing environment'
- script:
MOZ_BINARY=./firefox/firefox-bin npm run test:tape | tap-xunit > ./test-results.xml
displayName: 'Test'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: JUnit
testResultsFiles: './test-results.xml'
testRunTitle: $(Agent.JobName)