Publish code coverage from Azure CI

This commit is contained in:
Gary Tierney
2019-07-16 17:37:58 +01:00
parent 28a4752f47
commit 37e20c9a25
2 changed files with 8 additions and 4 deletions
-2
View File
@@ -7,8 +7,6 @@ addons:
organization: "apollo-rsps"
after_success:
- ./gradlew jacocoTestReport
- bash <(curl -s https://codecov.io/bash)
- git fetch --unshallow
- ./gradlew -Dsonar.host.url=https://sonarcloud.io -Dsonar.login="$SONAR_TOKEN" sonarqube
before_cache:
+8 -2
View File
@@ -22,8 +22,14 @@ steps:
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'build'
tasks: 'check jacocoTestReport'
- script: |
./gradlew --stop
displayName: "Gradle: stop daemon"
displayName: "Gradle: stop daemon"
- script: |
bash <(curl -s https://codecov.io/bash) -t "${CODECOV_TOKEN}"
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
displayName: "Codecov: publish coverage"