Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
schaapcommon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
schaapcommon
Commits
1d16c05e
Commit
1d16c05e
authored
7 months ago
by
Maik Nijhuis
Browse files
Options
Downloads
Patches
Plain Diff
AST-1571
Update coverage collection and reporting
parent
0a036718
No related branches found
Branches containing commit
No related tags found
1 merge request
!150
AST-1571 Update coverage collection and reporting
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+15
-20
15 additions, 20 deletions
.gitlab-ci.yml
docker/ubuntu_20_04_base
+5
-11
5 additions, 11 deletions
docker/ubuntu_20_04_base
docker/ubuntu_22_04_base
+4
-5
4 additions, 5 deletions
docker/ubuntu_22_04_base
with
24 additions
and
36 deletions
.gitlab-ci.yml
+
15
−
20
View file @
1d16c05e
...
...
@@ -115,11 +115,9 @@ clang-tidy:
before_script
:
-
git clone https://gitlab.com/aroffringa/aocommon.git
script
:
-
cmake --version
-
mkdir build && cd build
-
cmake -DAOCOMMON_INCLUDE_DIR=../aocommon/include -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=.. -DCMAKE_CXX_FLAGS="-coverage" -DCMAKE_EXE_LINKER_FLAGS="-coverage" ..
-
make -j`nproc`
-
make install
-
cmake -DAOCOMMON_INCLUDE_DIR=../aocommon/include -DBUILD_TESTING=ON -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" -DCMAKE_EXE_LINKER_FLAGS="${LINKER_FLAGS}" ..
-
make -j`nproc` install
artifacts
:
paths
:
-
aocommon
...
...
@@ -130,31 +128,28 @@ build-2004:
build-2204
:
extends
:
[
"
.needs-2204"
,
"
.build"
]
.test
:
stage
:
test
script
:
-
cd build/
-
ctest -j`nproc` --output-on-failure -T test
-
mkdir coverage-unit
-
gcovr -j`nproc` -r ../ -e '.*/external/.*' -e '.*/CompilerIdCXX/.*' -e '.*/test/.*' --txt coverage.txt --xml coverage.xml --html-details coverage-unit/coverage.html
-
cat coverage.txt
variables
:
CXX_FLAGS
:
-coverage -fprofile-update=atomic
LINKER_FLAGS
:
-coverage
test-2004
:
extends
:
.
test
stage
:
test
needs
:
[
"
versioning"
,
"
build-2004"
]
image
:
$BASE_IMAGE_2004
script
:
-
cd build/
-
ctest -j`nproc` --output-on-failure -T test
test-2204
:
extends
:
.
test
stage
:
test
needs
:
[
"
versioning"
,
"
build-2204"
]
image
:
$BASE_IMAGE_2204
after_script
:
-
cd build/
-
tar cfz coverage-unit.tar.gz coverage-unit/
script
:
-
cd build
-
ctest -j`nproc` --output-on-failure -T test
-
gcovr -j`nproc` -r .. -e '.*/external/.*' -e '.*/CompilerIdCXX/.*' -e '.*/test/.*' --txt --xml coverage.xml .
coverage
:
/^TOTAL.*\s+(\d+\%)$/
artifacts
:
paths
:
-
build/coverage-unit.tar.gz
reports
:
coverage_report
:
coverage_format
:
cobertura
...
...
This diff is collapsed.
Click to expand it.
docker/ubuntu_20_04_base
+
5
−
11
View file @
1d16c05e
...
...
@@ -3,19 +3,13 @@
# base
FROM ubuntu:20.04
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y && \
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update && apt-get upgrade -y \
# install astronomy packages
apt-get -y install libcfitsio-dev wcslib-dev libfftw3-dev libgsl-dev \
&&
apt-get -y install libcfitsio-dev wcslib-dev libfftw3-dev libgsl-dev \
# install misc packages
wget git make cmake g++ doxygen \
# install dependencies
libboost-all-dev libhdf5-dev libpython3-dev python3-pip \
casacore-dev casacore-tools clang-format-12 clang-tidy-12 \
&& rm -rf /var/lib/apt/lists/* \
# The formatter needs a binary named 'clang-format', not 'clang-format-12'.
# Same for clang-tidy-12.
&& ln -sf clang-format-12 /usr/bin/clang-format \
&& ln -sf clang-tidy-12 /usr/bin/clang-tidy \
# 20220624: The latest GCOVR (5.1) is broken, so use 5.0.
# jinja2<3.1 is required for the html details of GCOVR 5.0
&& python3 -m pip install gcovr==5.0 'jinja2<3.1' cmake-format isort
\ No newline at end of file
casacore-dev casacore-tools \
&& rm -rf /var/lib/apt/lists/*
This diff is collapsed.
Click to expand it.
docker/ubuntu_22_04_base
+
4
−
5
View file @
1d16c05e
...
...
@@ -3,9 +3,10 @@
# base
FROM ubuntu:22.04
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y && \
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update && apt-get upgrade -y \
# install astronomy packages
apt-get -y install libcfitsio-dev wcslib-dev libfftw3-dev libgsl-dev \
&&
apt-get -y install libcfitsio-dev wcslib-dev libfftw3-dev libgsl-dev \
# install misc packages
wget git make cmake g++ doxygen \
# install dependencies
...
...
@@ -16,6 +17,4 @@ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -
# Same for clang-tidy-12.
&& ln -sf clang-format-12 /usr/bin/clang-format \
&& ln -sf clang-tidy-12 /usr/bin/clang-tidy \
# 20220624: The latest GCOVR (5.1) is broken, so use 5.0.
# jinja2<3.1 is required for the html details of GCOVR 5.0
&& python3 -m pip install gcovr==5.0 'jinja2<3.1' black cmake-format isort
\ No newline at end of file
&& python3 -m pip install gcovr black cmake-format isort
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment