diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..1ef8c0f43958b9ddb0e984c02e07af4102e3e16e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +sudo: required +language: cpp +compiler: gcc +dist: trusty +notifications: + email: false + +before_install: + - git submodule init + - git submodule update --recursive + +script: + - export CC=gcc-5 + - mkdir build + - cd build + - cmake -DBUILD_LIB_DAP_SERVER_TESTS=ON ../ + - make + - ctest --verbose + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-5 + diff --git a/CMakeLists.txt b/CMakeLists.txt index a672476eaa02efbbefdd00b3df3062856360e8ef..9e6c8df7c7a47cf48d66ba7c8b4d75ed0305a8a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,10 +6,10 @@ add_subdirectory(libdap) add_subdirectory(libdap-server-core) ################ -#if(BUILD_LIB_DAP_SERVER_TESTS) +if(BUILD_LIB_DAP_SERVER_TESTS) enable_testing() add_subdirectory(test) -#endif() +endif() add_subdirectory(http_server) add_subdirectory(enc_server)