diff mbox series

[v1,1/1] travis: enable ccache and pip cache

Message ID 1501099212-4477-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/1] travis: enable ccache and pip cache | expand

Commit Message

Github ODP bot July 26, 2017, 8 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 89 (lumag:cache)
 ** https://github.com/Linaro/odp/pull/89
 ** Patch: https://github.com/Linaro/odp/pull/89.patch
 ** Base sha: f4f7679d16917d9a7c1b2220e351fd27733ee96b
 ** Merge commit sha: 10251f27bc3e912b3e5e90a086fb925c2d77ac95
 **/
 .travis.yml | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index 42c2c963..d3cbefc3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -55,6 +55,10 @@  compiler:
         - gcc
         - clang-3.8
 
+cache:
+        - ccache
+        - pip
+
 env:
         - CONF=""
         - CONF="--disable-abi-compat"
@@ -79,6 +83,8 @@  before_install:
                   sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install build-essential gcc-"$CROSS_GNU_TYPE" pkg-config-"$CROSS_GNU_TYPE" ;
                   sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install libc6-dev:"$CROSS_ARCH" libssl-dev:"$CROSS_ARCH" zlib1g-dev:"$CROSS_ARCH" libconfig-dev:"$CROSS_ARCH" ;
           fi
+        - if test ! -L /usr/lib/ccache/${CC%% *} ; then sudo ln -s -t /usr/lib/ccache/ `which ${CC%% *}` ; fi
+        - ccache -s
 
         # Install cunit for the validation tests because distro version is too old and fails C99 compile
         - sudo apt-get remove libcunit1-dev libcunit1
@@ -143,6 +149,7 @@  script:
         - echo "Static link.."
         - ${CC} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst `PKG_CONFIG_PATH=${HOME}/odp-install/lib/pkgconfig pkg-config --cflags --libs libodp-linux --static` -static
         - ./odp_hello_inst
+        - ccache -s
 
 jobs:
         include: