1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-31 16:57:34 +00:00

CI: Add x86_64 Clang Coverage pipeline in Azure

Add a job to the Azure pipelines to run tests with coverage enabled, and
aggregate the test results in a folder of html pages showing the
coverage results overall, and per-file.

Future work is needed to take the published pipeline artifact for the
coverage results and display them somewhere interesting.
This commit is contained in:
Andrew Kaster 2022-03-19 16:42:54 -06:00 committed by Andreas Kling
parent 3e32fb911e
commit 44bcd7c7aa
3 changed files with 50 additions and 3 deletions

View file

@ -2,6 +2,7 @@ parameters:
os: 'Linux'
arch: 'i686'
toolchain: 'gcc'
coverage: 'OFF'
build_directory: ''
ccache_version: 1 # Increment this number if CI has trouble with ccache.
serenity_ccache_path: ''
@ -45,9 +46,9 @@ steps:
- ${{ if ne(parameters.serenity_ccache_path, '') }}:
- task: Cache@2
inputs:
key: '"ccache" | "${{ parameters.os }}" | "${{ parameters.arch }}" | "${{ parameters.toolchain }}" | "${{ parameters.ccache_version }}" | "$(timestamp)"'
key: '"ccache" | "${{ parameters.os }}" | "${{ parameters.arch }}" | "${{ parameters.toolchain }}" | "${{ parameters.coverage }}" | "${{ parameters.ccache_version }}" | "$(timestamp)"'
restoreKeys: |
"ccache" | "${{ parameters.os }}" | "${{ parameters.arch }}" | "${{ parameters.toolchain }}" | "${{ parameters.ccache_version }}"
"ccache" | "${{ parameters.os }}" | "${{ parameters.arch }}" | "${{ parameters.toolchain }}" | "${{ parameters.coverage }}" | "${{ parameters.ccache_version }}"
path: ${{ parameters.serenity_ccache_path }}
displayName: 'Serenity Compiler Cache'