Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 5c7ef24

Browse files
authored
steps: remove unused coverage (#2492)
1 parent e9e31ec commit 5c7ef24

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

bluebrain/repo-patches/packages/steps/package.py

-21
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class Steps(CMakePackage):
3737
variant("distmesh", default=True, description="Add solvers based on distributed mesh")
3838
variant("petsc", default=True, description="Use PETSc library for parallel E-Field solver")
3939
variant("mpi", default=True, description="Use MPI for parallel solvers")
40-
variant("coverage", default=False, description="Enable code coverage")
4140
variant("bundle", default=False, description="Use bundled libraries")
4241
variant("stochtests", default=True, description="Add stochastic tests to ctests")
4342
variant(
@@ -67,7 +66,6 @@ class Steps(CMakePackage):
6766
depends_on("gmsh", when="+distmesh")
6867
depends_on("gsl", when="+vesicle")
6968
depends_on("lapack", when="+lapack")
70-
depends_on("lcov", when="+coverage", type="build")
7169
depends_on("likwid", when="+likwid")
7270
depends_on("metis+int64")
7371
depends_on("mpi", when="+mpi")
@@ -77,7 +75,6 @@ class Steps(CMakePackage):
7775
depends_on("petsc~debug+int64~mpi", when="+petsc~mpi")
7876
depends_on("pkgconfig", type="build")
7977
depends_on("py-cython")
80-
depends_on("py-gcovr", when="+coverage", type="build")
8178
depends_on("py-h5py", type=("build", "test", "run"))
8279
depends_on("py-pip", type="build", when="@5:")
8380
depends_on("py-matplotlib", type=("build", "test"))
@@ -107,7 +104,6 @@ def cmake_args(self):
107104
self.define("STEPS_INSTALL_PYTHON_DEPS", False),
108105
self.define_from_variant("BUILD_STOCHASTIC_TESTS", "stochtests"),
109106
self.define_from_variant("BUILD_TESTING", "codechecks"),
110-
self.define_from_variant("ENABLE_CODECOVERAGE", "coverage"),
111107
self.define_from_variant("STEPS_ENABLE_ERROR_ON_WARNING", "codechecks"),
112108
self.define_from_variant("STEPS_TEST_FORMATTING", "codechecks"),
113109
self.define_from_variant("STEPS_USE_CALIPER_PROFILING", "caliper"),
@@ -132,23 +128,6 @@ def cmake_args(self):
132128

133129
return args
134130

135-
@property
136-
def build_targets(self):
137-
targets = []
138-
if "+coverage" in self.spec:
139-
if self.compiler.name != "gcc":
140-
raise ValueError(
141-
"Package " + self.name + " build with coverage enabled requires GCC to build"
142-
)
143-
targets = [
144-
"CTEST_OUTPUT_ON_FAILURE=1",
145-
"all", # build
146-
"coverage_init", # initialize coverage counters
147-
"test", # run tests suite
148-
"coverage", # collect coverage counters and build reports
149-
]
150-
return targets
151-
152131
def setup_run_environment(self, env):
153132
# This recipe exposes a Python package from a C++ CMake project.
154133
# This hook is required to reproduce what Spack PythonPackage does.

0 commit comments

Comments
 (0)