diff --git a/.azure-pipelines/test.yml b/.azure-pipelines/test.yml index 80d4e1c..be1cb9c 100755 --- a/.azure-pipelines/test.yml +++ b/.azure-pipelines/test.yml @@ -27,8 +27,16 @@ steps: inputs: codeCoverageTool: 'cobertura' summaryFileLocation: coverage/cobertura-coverage.xml + reportDirectory: coverage/lcov-report condition: succeededOrFailed() + - bash: | + bash <(curl https://codecov.io/bash) -t $(TOKEN) -f coverage/cobertura-coverage.xml + displayName: 'codecov' + condition: succeededOrFailed() + env: + TOKEN: $(CODECOV_TOKEN) + - task: CopyFiles@2 inputs: sourceFolder: '$(Build.SourcesDirectory)/coverage' @@ -39,4 +47,4 @@ steps: displayName: 'Publish Coverage Artifact' inputs: targetPath: $(Build.ArtifactStagingDirectory) - artifactName: 'coverage-$(Agent.OS)-$(node_version)' + artifactName: 'coverage-$(Agent.OS)-$(node_version)' \ No newline at end of file diff --git a/azure-pipelines.pr.yml b/azure-pipelines.pr.yml index 200670f..eb608d6 100755 --- a/azure-pipelines.pr.yml +++ b/azure-pipelines.pr.yml @@ -5,6 +5,9 @@ trigger: pr: - master +variables: +- group: codecov + jobs: - job: Linux pool: