diff --git a/.devops/azure-pipelines-ci.yml b/.devops/azure-pipelines-ci.yml index d0a0db2..b7b64c3 100644 --- a/.devops/azure-pipelines-ci.yml +++ b/.devops/azure-pipelines-ci.yml @@ -1,4 +1,67 @@ trigger: +- '*' + +jobs: +- job: Check_Everything + pool: + vmImage: 'Ubuntu 16.04' + steps: + - task: Npm@1 + displayName: 'npm install' + inputs: + command: custom + verbose: false + customCommand: install + - task: Npm@1 + displayName: 'npm run check:everything -- --azure-devops' + inputs: + command: custom + verbose: false + customCommand: run check:everything -- --azure-devops +- 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: '$(System.DefaultWorkingDirectory)/test-results.xml' + testRunTitle: 'Test results for JavaScript' + - task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml' + reportDirectory: '$(System.DefaultWorkingDirectory)/coverage/' +- job: Build + pool: + vmImage: 'Ubuntu 16.04' + steps: + - task: Npm@1 + displayName: 'npm build' + inputs: + command: custom + verbose: false + customCommand: build - master jobs: diff --git a/.devops/azure-pipelines-pr.yml b/.devops/azure-pipelines-pr.yml index 7c1d2ae..0400a53 100644 --- a/.devops/azure-pipelines-pr.yml +++ b/.devops/azure-pipelines-pr.yml @@ -1,4 +1,75 @@ trigger: +- master + +jobs: +- job: Check_Everything + pool: + vmImage: 'Ubuntu 16.04' + steps: + - task: Npm@1 + displayName: 'npm install' + inputs: + command: custom + verbose: false + customCommand: install + - task: Npm@1 + displayName: 'npm run check:everything -- --azure-devops' + inputs: + command: custom + verbose: false + customCommand: run check:everything -- --azure-devops +- 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: '$(System.DefaultWorkingDirectory)/test-results.xml' + testRunTitle: 'Test results for JavaScript' + - task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-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 - '*' jobs: diff --git a/README.md b/README.md index 27d4b42..e6a673f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -# ms-rest-azure-js [![Build Status](https://dev.azure.com/azure-public/adx/_apis/build/status/public.Azure.ms-rest-azure-js)](https://dev.azure.com/azure-public/adx/_build/latest?definitionId=10) - +# ms-rest-azure-js [![Build Status](https://dev.azure.com/azure-public/azsdk/_apis/build/status/public.Azure.ms-rest-azure-js%20-%20CI?branchName=master)](https://dev.azure.com/azure-public/azsdk/_build/latest?definitionId=31&branchName=master) Azure Runtime for isomorphic javascript libraries (that work in the browser and node.js environemnt) generated via [Autorest](https://github.com/Azure/Autorest). ## Requirements