From 8ed2e14801019787af493d346f807ab669d547ba Mon Sep 17 00:00:00 2001 From: Joseph Mirabel <jmirabel@laas.fr> Date: Thu, 14 Nov 2019 12:13:46 +0100 Subject: [PATCH] [CI] Update CI on mac. --- .travis.yml | 22 ++++++++-------------- travis_custom/custom_before_install_osx.sh | 4 ++-- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index a91e3d67..b34dd4f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,9 @@ env: - BUILD_PYTHON_INTERFACE=ON - MAKEFLAGS="-j2" +cache: + ccache: true + matrix: include: - name: "Trusty - Release - g++" @@ -65,23 +68,14 @@ matrix: env: BUILD_TYPE=Release os: osx compiler: clang - addons: - homebrew: - update: true - packages: - - git # build - - doxygen # build - - cmake # build - - pkg-config # build - - boost - - brewsci/homebrew-science/cddlib - - assimp - - eigen - - octomap + cache: + ccache: true + directories: + - $HOME/Library/Caches/Homebrew before_install: - if [ "$TRAVIS_OS_NAME" = "linux" ]; then source travis_custom/custom_before_install_linux.sh ; fi - - if [ "$TRAVIS_OS_NAME" = "osx" ]; then source travis_custom/custom_before_install_osx.sh ; fi + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then source travis_custom/custom_before_install_osx.sh ; fi script: # Create build directory diff --git a/travis_custom/custom_before_install_osx.sh b/travis_custom/custom_before_install_osx.sh index 8050eac6..e6015a00 100755 --- a/travis_custom/custom_before_install_osx.sh +++ b/travis_custom/custom_before_install_osx.sh @@ -2,8 +2,8 @@ brew tap gepetto/homebrew-gepetto # install eigenpy -brew install eigenpy +brew install boost assimp eigen octomap eigenpy # set environment variables export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/opt/openrobots/lib/pkgconfig" -export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/openrobots/lib" \ No newline at end of file +export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/openrobots/lib" -- GitLab