stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3c762fbe1f16773acf874ec906511b8376b70719

commit 3c762fbe1f16773acf874ec906511b8376b70719
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Jul 11 19:00:47 2018 -0400

    ci: add autoconf caching
    
    this enables caching of the autoreconf and ./configure stages of the build
    using autotools-provided caching mechanisms in order to speed up these steps
    
    fix T7136
    
    Differential Revision: https://phab.enlightenment.org/D6608
---
 .ci/ci-configure.sh |  4 ++--
 .travis.yml         | 18 ++++++++++++++++--
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/.ci/ci-configure.sh b/.ci/ci-configure.sh
index 86e280ec5f..4af6763576 100755
--- a/.ci/ci-configure.sh
+++ b/.ci/ci-configure.sh
@@ -7,7 +7,7 @@ CI_BUILD_TYPE="$1"
 export MAKEFLAGS="-j5"
 export EIO_MONITOR_POLL=1
 
-DEFAULT_LINUX_COPTS="--prefix=/usr/ --with-tests=regular 
--disable-cxx-bindings"
+DEFAULT_LINUX_COPTS="--prefix=/usr/ --with-tests=regular 
--disable-cxx-bindings -C"
 
 WAYLAND_LINUX_COPTS=" --enable-wayland --enable-elput --enable-drm \
 --enable-wayland-ivi-shell --enable-gl-drm --with-opengl=es --enable-egl"
@@ -54,7 +54,7 @@ if [ "$DISTRO" != "" ] ; then
     --env CXX="ccache g++" --env CFLAGS="-fdirectives-only" --env 
CXXFLAGS="-fdirectives-only" \
     $(cat $HOME/cid) ./autogen.sh $OPTS
 else
-  OSX_COPTS="--disable-cxx-bindings"
+  OSX_COPTS="--disable-cxx-bindings -C"
 
   # Prepare OSX env for build
   mkdir -p ~/Library/LaunchAgents
diff --git a/.travis.yml b/.travis.yml
index f3ba713f01..bd38420d68 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,9 @@
 language: c
-cache: ccache
+cache:
+  directories:
+    - $HOME/cachedir
+    - $HOME/.ccache
+    - $HOME/autom4te.cache
 sudo: required
 dist: trusty
 
@@ -73,10 +77,14 @@ before_script:
       if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
         docker version
         docker run --cidfile $HOME/cid -t -d -v `pwd`:/src -v 
$HOME/.ccache:/root/.ccache -w /src stefanschmidt1/ci-support-files:$DISTRO bash
-        cat $HOME/cid
+        cp $HOME/cachedir/config.cache . || true
       fi
 
   - .ci/ci-ccache-stats.sh
+  - |
+       if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+         cp $HOME/cachedir/config.cache . || true
+       fi
 
 script:
   - .ci/ci-configure.sh "$CI_BUILD_TYPE"
@@ -99,9 +107,15 @@ script:
 before_cache:
   - .ci/ci-ccache-stats.sh
   - |
+       mkdir -p $HOME/cachedir
        if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
          sudo chown travis:travis $HOME/.ccache
+         mkdir -p $HOME/cachedir/
+         sudo cp config.cache $HOME/cachedir/
+         sudo chown travis:travis $HOME/cachedir/config.cache
+         sudo chown travis:travis $HOME/autom4te.cache
        else
+         cp config.cache $HOME/cachedir
        fi
 
 after_success:

-- 


Reply via email to