diff --git a/.travis.yml b/.travis.yml
index a91e3d6706e4f0ab1bd4f92505c89d1f52639ccb..b34dd4f9ceb367fb0765e9ef07f3e9aad5a94c61 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 8050eac617a6312a5ce8f50bd862cf3c1c33fdb9..e6015a00656ab08d8b7fbb006aa7d43eb08f85e7 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"