summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml77
1 files changed, 77 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..b8a080ea
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,77 @@
+language: cpp
+
+sudo: required
+
+git:
+ depth: 3
+
+matrix:
+ include:
+ # A. Mac OSX
+ - os: osx
+ osx_image: xcode9.4
+ compiler: clang
+ env:
+ # 1. Only examples and associated tests
+ - CMAKE_EXAMPLE='ON' CMAKE_TEST='OFF' CMAKE_UTILITIES='OFF' CMAKE_PYTHON='OFF' MAKE_TARGET='test'
+ - os: osx
+ osx_image: xcode9.4
+ compiler: clang
+ env:
+ # 2. Only unitary tests
+ - CMAKE_EXAMPLE='OFF' CMAKE_TEST='ON' CMAKE_UTILITIES='OFF' CMAKE_PYTHON='OFF' MAKE_TARGET='test'
+ - os: osx
+ osx_image: xcode9.4
+ compiler: clang
+ env:
+ # 3. Only utilities and associated tests
+ - CMAKE_EXAMPLE='OFF' CMAKE_TEST='OFF' CMAKE_UTILITIES='ON' CMAKE_PYTHON='OFF' MAKE_TARGET='test'
+ - os: osx
+ osx_image: xcode9.4
+ compiler: clang
+ env:
+ # 4. Only doxygen documentation
+ - CMAKE_EXAMPLE='OFF' CMAKE_TEST='OFF' CMAKE_UTILITIES='OFF' CMAKE_PYTHON='OFF' MAKE_TARGET='doxygen'
+ # Issue with sphinx-build with sphinx 2.0.1
+ # - os: osx
+ # osx_image: xcode9.4
+ # compiler: clang
+ # env:
+ # # 5. Only Python, associated tests and sphinx documentation
+ # - CMAKE_EXAMPLE='OFF' CMAKE_TEST='OFF' CMAKE_UTILITIES='OFF' CMAKE_PYTHON='ON' MAKE_TARGET='test sphinx'
+
+cache:
+ directories:
+ - $HOME/.cache/pip
+
+addons:
+ homebrew:
+ packages:
+ - cmake
+ - graphviz
+ - doxygen
+ - boost
+ - eigen
+ - gmp
+ - mpfr
+ - tbb
+ - cgal
+ - python3
+
+# When installing through libcgal-dev apt, CMake Error at CGAL Exports.cmake The imported target "CGAL::CGAL Qt5" references the file
+install:
+ - python3 -m pip install --upgrade pip setuptools wheel
+ - python3 -m pip install --user pytest Cython sphinx sphinxcontrib-bibtex matplotlib numpy scipy
+
+script:
+ - rm -rf build
+ - mkdir -p build
+ - cd build
+ - cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=${CMAKE_EXAMPLE} -DWITH_GUDHI_TEST=${CMAKE_TEST} -DWITH_GUDHI_UTILITIES=${CMAKE_UTILITIES} -DWITH_GUDHI_PYTHON=${CMAKE_PYTHON} -DUSER_VERSION_DIR=version -DPython_ADDITIONAL_VERSIONS=3 ..
+ - make all ${MAKE_TARGET}
+ - cd ..
+
+notifications:
+ email:
+ on_success: change # default: always
+ on_failure: always # default: always