diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/report.py | 6 | ||||
-rw-r--r-- | lib/spack/spack/reporters/cdash.py | 12 |
2 files changed, 16 insertions, 2 deletions
diff --git a/lib/spack/spack/report.py b/lib/spack/spack/report.py index dc68b5e583..fca15b126a 100644 --- a/lib/spack/spack/report.py +++ b/lib/spack/spack/report.py @@ -254,7 +254,11 @@ class collect_info(object): """ def __init__(self, format_name, install_command, cdash_upload_url): self.filename = None - self.format_name = format_name + if cdash_upload_url: + self.format_name = 'cdash' + self.filename = 'cdash_report' + else: + self.format_name = format_name # Check that the format is valid. if self.format_name not in valid_formats: raise ValueError('invalid report type: {0}' diff --git a/lib/spack/spack/reporters/cdash.py b/lib/spack/spack/reporters/cdash.py index eeb1224fc7..9d00e60b20 100644 --- a/lib/spack/spack/reporters/cdash.py +++ b/lib/spack/spack/reporters/cdash.py @@ -58,7 +58,17 @@ cdash_phases = set(map_phases_to_cdash.values()) class CDash(Reporter): - """Generate reports of spec installations for CDash.""" + """Generate reports of spec installations for CDash. + + To use this reporter, pass the ``--cdash-upload-url`` argument to + ``spack install``:: + + spack install --cdash-upload-url=\\ + https://mydomain.com/cdash/submit.php?project=Spack <spec> + + In this example, results will be uploaded to the *Spack* project on the + CDash instance hosted at https://mydomain.com/cdash. + """ def __init__(self, install_command, cdash_upload_url): Reporter.__init__(self, install_command, cdash_upload_url) |