diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..35c1c29c --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,40 @@ +pool: + vmImage: Ubuntu-16.04 + +strategy: + matrix: + node_8_x: + node_version: 8.x + node_9_x: + node_version: 9.x + node_10_x: + node_version: 10.x + node_11_x: + node_version: 11.x + +steps: + - task: NodeTool@0 + displayName: Install Node.js + inputs: + versionSpec: $(node_version) + + - script: yarn install + displayName: Install dependencies + + - script: yarn build + displayName: Build application + + - script: yarn test:ci + displayName: Running tests + + - task: PublishTestResults@2 + inputs: + testResultsFiles: '**/test-results.xml' + testRunTitle: Test results for JavaScript + condition: succeededOrFailed() + + - task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml + reportDirectory: $(System.DefaultWorkingDirectory)/coverage