Skip to content

Commit 373dbd0

Browse files
author
Danny McCormick
committed
Adding azure pipelines
1 parent 4a8d9e3 commit 373dbd0

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Make sure baseline files have consistent line endings
2+
*.txt text eol=lf

azure-pipelines-template.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
steps:
2+
- task: NodeTool@0
3+
inputs:
4+
versionSpec: '8.9'
5+
displayName: 'Install Node.js'
6+
7+
- script: npm install
8+
displayName: 'npm install'
9+
10+
- script: npm install -g mocha
11+
displayName: 'Install mocha'
12+
13+
- script: npm install -g mocha-junit-reporter
14+
displayName: 'Install mocha junit reporter'
15+
16+
- script: npm run build
17+
displayName: 'Build'
18+
19+
- script: mocha tests/test.js --reporter mocha-junit-reporter
20+
displayName: 'Test'
21+
22+
- task: PublishTestResults@2
23+
inputs:
24+
testResultsFiles: '**/test-results.xml'
25+
condition: succeededOrFailed()

azure-pipelines.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
trigger:
2+
- master
3+
- releases/*
4+
5+
jobs:
6+
7+
# All tasks on Linux
8+
- job: build_all_windows
9+
displayName: Build all tasks (Windows)
10+
pool:
11+
vmImage: vs2017-win2016
12+
steps:
13+
- template: azure-pipelines-template.yml
14+
15+
# All tasks on Linux
16+
- job: build_all_linux
17+
displayName: Build all tasks (Linux)
18+
pool:
19+
vmImage: 'Ubuntu 16.04'
20+
steps:
21+
- template: azure-pipelines-template.yml
22+
23+
# All tasks on macOS
24+
- job: build_all_darwin
25+
displayName: Build all tasks (macOS)
26+
pool:
27+
vmImage: macos-10.13
28+
steps:
29+
- template: azure-pipelines-template.yml

0 commit comments

Comments
 (0)