Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CI with Azure Pipelines #434

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
trigger:
- master

jobs:
- job: Windows
timeoutInMinutes: 360
strategy:
matrix:
Node6:
nodejs_version: "6"
Node8:
nodejs_version: "8"
maxParallel: 2

pool:
vmImage: vs2017-win2016

steps:
- task: NodeTool@0
inputs:
versionSpec: $(nodejs_version)

- powershell: |
npm config set spin false
npm install
displayName: Install

- powershell: |
node --version
npm --version
npm run test:bin -- --reporter=xunit --reporter-options output=results-bin.xml
npm run test:command -- --reporter=xunit --reporter-options output=results-command.xml
displayName: Test
continueOnError: true

- task: PublishTestResults@2
displayName: Publish Tests Results
inputs:
testResultsFiles: 'results-*.xml'
testResultsFormat: XUnit
searchFolder: '$(Build.SourcesDirectory)'
condition: succeededOrFailed()

- job: Linux
strategy:
matrix:
Node6:
nodejs_version: "6"
Node8:
nodejs_version: "8"
maxParallel: 2

pool:
vmImage: ubuntu-16.04

steps:
- task: NodeTool@0
inputs:
versionSpec: $(nodejs_version)

- bash: |
npm config set spin false
npm install
displayName: Install

- script: |
node --version
npm --version
npm run test:bin -- --reporter=xunit --reporter-options output=results-bin.xml
npm run test:command -- --reporter=xunit --reporter-options output=results-command.xml
displayName: Test
continueOnError: true

- task: PublishTestResults@2
displayName: Publish Tests Results
inputs:
testResultsFiles: 'results-*.xml'
testResultsFormat: XUnit
searchFolder: '$(Build.SourcesDirectory)'
condition: succeededOrFailed()