From 8231f1aa37aa0c5893d59cf5ec736ed470058d38 Mon Sep 17 00:00:00 2001 From: Kurotych Anatolii <akurotych@gmail.com> Date: Sun, 24 Feb 2019 12:36:56 +0700 Subject: [PATCH] Add travis (#10) --- .travis.yml | 25 +++++++++++++++++++++++++ CMakeLists.txt | 6 +++--- 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..d72fddccc3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: c +compiler: gcc +dist: xenial +notifications: + email: false + +before_install: + - git submodule init + - git submodule update --recursive + +script: + - mkdir build + - cd build + - cmake -DBUILD_DAP_STREAM_TESTS=ON ../ + - make + - ctest --verbose + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - libjson-c-dev + - libev-dev + - libmagic-dev diff --git a/CMakeLists.txt b/CMakeLists.txt index 9be093c243..a1907e4115 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ project(libdap-stream C) -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.0) if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON)) set(SUBMODULES_NO_BUILD ON) @@ -10,10 +10,10 @@ if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON)) add_subdirectory(libdap-stream-ch) endif() -#if(BUILD_DAP_STREAM_TESTS) +if(BUILD_DAP_STREAM_TESTS) enable_testing() add_subdirectory(test) -#endif() +endif() add_subdirectory(session) add_subdirectory(stream) -- GitLab