1
0
Fork 0

For #4897: Add back accidentally removed code coverage upload (#4958)

* For  #4897: Add back accidentally removed code coverage upload

* Make code coverage commands clearer

* Inline run_coverage as True

* Update arch label for codecov upload

* Remove variants from codecov, as they aren't used

* Remove unused format string
master
Colin Lee 2019-08-27 15:52:07 -05:00 committed by GitHub
parent eccd6a1bc5
commit eae97034e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -142,11 +142,14 @@ class TaskBuilder(object):
)
def craft_test_pr_task(self, variant):
command = 'test{}UnitTest'.format(variant.name)
# upload coverage only once, if the variant is arm64
test_gradle_command = \
'-Pcoverage jacocoGeckoNightlyDebugTestReport && automation/taskcluster/upload_coverage_report.sh'
return self._craft_clean_gradle_task(
name='test: {}'.format(variant.name),
description='Building and testing variant {}'.format(variant.name),
gradle_task=command,
gradle_task=test_gradle_command,
treeherder={
'groupSymbol': variant.build_type,
'jobKind': 'test',