diff --git a/.azure-pipelines/test.yml b/.azure-pipelines/test.yml index 80d4e1c..b6a5c58 100755 --- a/.azure-pipelines/test.yml +++ b/.azure-pipelines/test.yml @@ -27,6 +27,12 @@ steps: inputs: codeCoverageTool: 'cobertura' summaryFileLocation: coverage/cobertura-coverage.xml + reportDirectory: coverage/lcov-report + condition: succeededOrFailed() + + - script: | + bash <(curl https://codecov.io/bash) -t $(CODECOV_TOKEN) -f coverage/cobertura-coverage.xml + displayName: 'codecov' condition: succeededOrFailed() - task: CopyFiles@2 @@ -39,4 +45,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: