message: Try to cache CGAL dir
diff: @@ -6,6 +6,10 @@ git:
  cache:
  directories:
  - $HOME/.cache/pip
  + - $HOME/CGAL-4.13
  +branches:
  + only:
  + - master
  env:
  matrix:
  # Only examples and associated tests
  @@ -38,22 +42,21 @@ addons:
  # When installing through libcgal-dev apt, CMake Error at CGAL Exports.cmake The imported target "CGAL::CGAL Qt5" references the file
  install:
  - - curl -LO "https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.13/CGAL-4.13.tar.xz"
  - - tar xf CGAL-4.13.tar.xz
  + - [[ -d 'CGAL-4.13' ]] || curl -LO "https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.13/CGAL-4.13.tar.xz"
  + - [[ -d 'CGAL-4.13' ]] || tar xf CGAL-4.13.tar.xz
  - cd CGAL-4.13
  - cmake -DCMAKE_BUILD_TYPE=Release -DCGAL_HEADER_ONLY=ON .
  - make all
  - - sudo make install
  - cd ..
  - pip3 install --upgrade pip
  - pip3 install --user 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 ..
  + - 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 -DCGAL_DIR=$HOME/CGAL-4.13 ..
  - make all ${MAKE_TARGET}
  - cd ..
  - - rm -rf build
  notifications:
  email:
  on_success: change # default: always
  