Skip to content

Commit bb7af6d

Browse files
committed
#1: enable coverage
1 parent 12624c3 commit bb7af6d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ FOO_BUILD_DIR=/opt/foo/build
1212
FOO_OUTPUT_DIR=/opt/foo/output
1313
FOO_TESTS_ENABLED=ON
1414
FOO_RUN_TESTS=ON
15-
16-
# Temporary: Turn off coverage reporting (requires lcov but not yet in DARMA/workflows setup requirements)
17-
FOO_COVERAGE_ENABLED=OFF
15+
FOO_COVERAGE_ENABLED=ON
1816
FOO_COVERAGE_REPORT=/opt/foo/output/cov
1917
FOO_WERROR_ENABLED=0
2018

21-
# TODO: in CI this should be configurable per test environment
19+
# ENHANCEMENT: in CI we might add specific environment files per test environment
20+
# We might envisage in ci directory to put environment files like
21+
# - current .env and specific per setup like .env.{test_environment_name} (e.g. .env.wf-amd64-ubuntu-18.04-gcc-8-cpp)

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ jobs:
141141
${{ runner.os }}-${{ env.cache_name }}-${{ env.TS_YEAR }}-
142142
${{ runner.os }}-${{ env.cache_name }}-
143143
144+
# ENHANCEMENT: remove lcov from there and add to base images in the workflows repository
144145
- name: PR tests
145146
run: |
146147
WORKSPACE=${{ github.workspace }}
@@ -149,6 +150,8 @@ jobs:
149150
fi
150151
CMD='
151152
cd '${WORKSPACE}'; \
153+
wget https://raw.githubusercontent.com/${{ env.CI_REPO }}/refs/heads/${{ env.CI_BRANCH }}/ci/shared/scripts/deps/packages.sh && chmod +x packages.sh
154+
./packages.sh lcov
152155
ls -l;
153156
chmod +x ./build.sh; \
154157
\
@@ -210,4 +213,4 @@ jobs:
210213
if: always()
211214
with:
212215
name: foo-output-${{ matrix.runner.name }}
213-
path: /opt/foo/output
216+
path: ${{ env.OUTPUT_DIR }}

0 commit comments

Comments
 (0)