From 70dfef345ef42eec721c145b2e8552980ddeeb61 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik <41709775+kpajdzik@users.noreply.github.com> Date: Mon, 12 Nov 2018 09:45:36 -0800 Subject: [PATCH] Add Azure Pipelines configuration (#15) --- azure-pipelines.yml | 56 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..924408c --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,56 @@ +trigger: +- master + +jobs: +- job: Test + pool: + vmImage: 'Ubuntu 16.04' + strategy: + matrix: + Node6: + node.version: 6.x + Node8: + node.version: 8.x + Node10: + node.version: 10.x + Node11: + node.version: 11.x + steps: + - task: NodeTool@0 + displayName: 'Install Node' + inputs: + versionSpec: $(node.version) + - script: npm install + - task: Npm@1 + displayName: 'npm test' + inputs: + command: custom + verbose: false + customCommand: test + - task: PublishTestResults@2 + inputs: + testResultsFiles: '**/test-results.xml' + testRunTitle: 'Test results for JavaScript' + - task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/*coverage.xml' + reportDirectory: '$(System.DefaultWorkingDirectory)/**/coverage' +- job: Build + pool: + vmImage: 'Ubuntu 16.04' + steps: + - task: Npm@1 + displayName: 'npm pack' + inputs: + command: custom + verbose: false + customCommand: pack + - task: CopyFiles@2 + displayName: 'Copy Files to: drop' + inputs: + Contents: '*.tgz' + TargetFolder: drop + - task: PublishBuildArtifacts@1 + inputs: + pathtoPublish: $(Build.SourcesDirectory)/drop