Travis CI configuration

add NO_GLTESTS option to cmake.
This commit is contained in:
Takahito Tejima 2015-04-28 14:44:07 -07:00
parent 99f1b57ba5
commit 2a543ee9a8
4 changed files with 40 additions and 3 deletions

29
.travis.yml Normal file
View File

@ -0,0 +1,29 @@
language: cpp
branches:
only:
- dev
before_script:
- cmake --version
- sudo add-apt-repository --yes ppa:dcthomp/smtk
- sudo apt-get update -qq
- sudo dpkg -r cmake cmake-data
- sudo apt-get install cmake # update cmake to 3.x
- cmake --version
- sudo add-apt-repository 'deb http://us.archive.ubuntu.com/ubuntu/ utopic main restricted universe multiverse'
- sudo add-apt-repository 'deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted universe multiverse'
- sudo apt-get update -qq
- sudo apt-get install freeglut3-dev
- sudo apt-get install libxxf86vm-dev
- sudo apt-get install libglew-dev
- sudo apt-get install libglfw3-dev
- sudo apt-get install xvfb # for GLtests... not working though.
script:
- cmake --version
- mkdir build && cd build
- cmake -DNO_TBB=1 -DNO_OMP=1 -DNO_CUDA=1 -DNO_OPENCL=1 -DNO_MAYA=1 -DNO_PTEX=1 -DNO_GLTESTS=1 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
- make
- make test

View File

@ -311,6 +311,8 @@ option(NO_OPENCL "Disable OpenCL backend" OFF)
option(NO_CLEW "Disable CLEW wrapper library" OFF) option(NO_CLEW "Disable CLEW wrapper library" OFF)
option(NO_OPENGL "Disable OpenGL support") option(NO_OPENGL "Disable OpenGL support")
option(NO_DX "Disable DirectX support") option(NO_DX "Disable DirectX support")
option(NO_TESTS "Disable all tests")
option(NO_GLTESTS "Disable GL tests")
# Check for dependencies # Check for dependencies
if(NOT NO_OMP) if(NOT NO_OMP)
@ -682,7 +684,7 @@ endmacro()
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Build targets # Build targets
if (NOT NO_TEST) if (NOT NO_TESTS)
enable_testing() enable_testing()
endif() endif()

View File

@ -74,4 +74,7 @@ target_link_libraries(glImaging
install(TARGETS glImaging DESTINATION "${CMAKE_BINDIR_BASE}") install(TARGETS glImaging DESTINATION "${CMAKE_BINDIR_BASE}")
add_test(glImaging ${EXECUTABLE_OUTPUT_PATH}/glImaging -w test -l 3 -s 256 256 -a) if (NOT NO_GLTESTS)
add_test(glImaging ${EXECUTABLE_OUTPUT_PATH}/glImaging -w test -l 3 -s 256 256 -a)
endif()

View File

@ -63,4 +63,7 @@ target_link_libraries(osd_regression
install(TARGETS osd_regression DESTINATION "${CMAKE_BINDIR_BASE}") install(TARGETS osd_regression DESTINATION "${CMAKE_BINDIR_BASE}")
add_test(osd_regression ${EXECUTABLE_OUTPUT_PATH}/osd_regression)
if (NOT NO_GLTESTS)
add_test(osd_regression ${EXECUTABLE_OUTPUT_PATH}/osd_regression)
endif()