Skip to content

Commit

Permalink
Disable test builds by default (#82)
Browse files Browse the repository at this point in the history
* Disable test builds by default

* Add libunwind for travis tests

* Remove libunwind-dev from .travis.yml again
  • Loading branch information
daboehme authored Dec 12, 2017
1 parent 040d80b commit 3d64051
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ before_install:
script:
- mkdir build-${CC}
- cd build-${CC}
- cmake -DCMAKE_C_COMPILER=`which $CC` -DCMAKE_CXX_COMPILER=`which $CXX` -DCMAKE_C_FLAGS="${CFLAGS}" -DCMAKE_CXX_FLAGS="${CXXFLAGS}" ..
- cmake -DCMAKE_C_COMPILER=`which $CC` -DCMAKE_CXX_COMPILER=`which $CXX` -DCMAKE_C_FLAGS="${CFLAGS}" -DCMAKE_CXX_FLAGS="${CXXFLAGS}" -DBUILD_TESTING=On ..
- make -j4
- make test

Expand Down
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ option(BUILD_SHARED_LIBS "Build shared libraries" TRUE)
option(CMAKE_INSTALL_RPATH_USE_LINK_PATH "Add rpath for all dependencies" TRUE)

option(WITH_TOOLS "Build Caliper tools" TRUE)
option(WITH_DOCS "Build Caliper documentation" FALSE)

option(WITH_NVPROF "Enable NVidia profiler bindings (requires CUDA)" FALSE)
option(WITH_CUPTI "Enable CUPTI service (CUDA performance analysis)" FALSE)
Expand All @@ -45,7 +44,8 @@ option(WITH_SOS "Enable SOSFlow data management" FALSE)
option(WITH_VTUNE "Enable Intel(R) VTune(tm) annotation bindings" FALSE)

# configure testing explicitly rather than with include(CTest) - avoids some clutter
option(BUILD_TESTING "Build continuous integration app and unit tests" ON)
option(BUILD_TESTING "Build continuous integration app and unit tests" FALSE)
option(BUILD_DOCS "Build Caliper documentation" FALSE)

if (BUILD_TESTING)
enable_testing()
Expand Down Expand Up @@ -302,7 +302,7 @@ add_subdirectory(examples/apps EXCLUDE_FROM_ALL)
if (BUILD_TESTING)
add_subdirectory(test)
endif()
if (WITH_DOCS)
if (BUILD_DOCS)
add_subdirectory(doc EXCLUDE_FROM_ALL)
endif()

Expand All @@ -317,6 +317,7 @@ message(STATUS "Build type : ${CMAKE_BUILD_TYPE}")
message(STATUS "Compiler : ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} (${CMAKE_CXX_COMPILER})")
message(STATUS "Install dir : ${CMAKE_INSTALL_PREFIX}")
message(STATUS "Build shared libs : ${BUILD_SHARED_LIBS}")
message(STATUS "Build Caliper tools : ${WITH_TOOLS}")

set(CALIPER_MODULES
GOTCHA
Expand Down

0 comments on commit 3d64051

Please sign in to comment.