Skip to content

Commit

Permalink
Disable tests for wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
alkino committed May 16, 2023
1 parent c77938b commit c06a879
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
# =============================================================================
option(NMODL_ENABLE_PYTHON_BINDINGS "Enable pybind11 based python bindings" ON)
option(NMODL_ENABLE_LEGACY_UNITS "Use original faraday, R, etc. instead of 2019 nist constants" OFF)
option(NMODL_ENABLE_TESTS "Enable build of tests" ON)
if(NMODL_ENABLE_LEGACY_UNITS)
add_definitions(-DUSE_LEGACY_UNITS)
endif()
Expand Down Expand Up @@ -205,7 +206,7 @@ set(MEMORYCHECK_COMMAND_OPTIONS
--track-origins=yes \
--show-possibly-lost=no")
# do not enable tests if nmodl is used as submodule
if(NOT NMODL_AS_SUBPROJECT)
if(NOT NMODL_AS_SUBPROJECT AND NMODL_ENABLE_TESTS)
include(CTest)
add_subdirectory(test/unit)
add_subdirectory(test/integration)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def run(self, *args, **kwargs):
cmake_args = ["-DPYTHON_EXECUTABLE=" + sys.executable]
if "bdist_wheel" in sys.argv:
cmake_args.append("-DLINK_AGAINST_PYTHON=FALSE")
cmake_args.append("-DNMODL_ENABLE_TESTS=FALSE")

# For CI, we want to build separate wheel
package_name = "NMODL"
Expand Down

0 comments on commit c06a879

Please sign in to comment.