[v1,1/3] travis: cache netmap build

Message ID 1501686006-18319-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • [v1,1/3] travis: cache netmap build
Related show

Commit Message

Github ODP bot Aug. 2, 2017, 3 p.m.
From: Maxim Uvarov <maxim.uvarov@linaro.org>


Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** Email created from pull request 104 (muvarov:master_travis_cache)
 ** https://github.com/Linaro/odp/pull/104
 ** Patch: https://github.com/Linaro/odp/pull/104.patch
 ** Base sha: bb0ca193f8c28036fdf8b3d6c8aa5d4f11980e6c
 ** Merge commit sha: 7551b4468cbe92e2ec42a5d8feb70268b49bccda
 **/
 .travis.yml | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

Patch hide | download patch | download mbox

diff --git a/.travis.yml b/.travis.yml
index 26dd2b38..64e01634 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -60,6 +60,7 @@  cache:
         - pip
         - directories:
                 - dpdk
+                - netmap
 
 env:
         - CONF=""
@@ -133,12 +134,15 @@  install:
           fi
 
 #	Netmap pktio
-        - git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v11.2 https://github.com/luigirizzo/netmap.git
-        - pushd netmap/LINUX
-        - ./configure
-        - make
-        - sudo insmod ./netmap.ko
-        - popd
+        - |
+          if [ ! -f "netmap/LINUX/netmap.ko" ]; then
+            git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v11.2 https://github.com/luigirizzo/netmap.git
+            pushd netmap/LINUX
+            ./configure
+            make
+            sudo insmod ./netmap.ko
+            popd
+          fi
 
 script:
         - ./bootstrap