[v6,12/13] travis: compile netmap

Message ID 1534442411-9502-13-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • travis: add docker tests
Related show

Commit Message

Github ODP bot Aug. 16, 2018, 6 p.m.
From: Maxim Uvarov <maxim.uvarov@linaro.org>


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

---
/** Email created from pull request 647 (muvarov:master_docker2)
 ** https://github.com/Linaro/odp/pull/647
 ** Patch: https://github.com/Linaro/odp/pull/647.patch
 ** Base sha: 6886a2ca3d3dd1157302ddee424c36f632903bd0
 ** Merge commit sha: f6c5d19f7fb9f83b8a2cbbed692a510146ca7df9
 **/
 .travis.yml | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

Patch

diff --git a/.travis.yml b/.travis.yml
index dd5f177a5..b2882524d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -82,8 +82,18 @@  script:
                  -e CONF="${CONF}" -e DPDK_SHARED="${DPDK_SHARED}"
                  lngodp/odp_ubuntu_14.04.5  /root/build_${CROSS_ARCH}.sh ;
           else
+               echo "compilling netmap";
+               CDIR=`pwd` ;
+               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 -j $(nproc);
+               popd;
+               sudo insmod ./netmap/LINUX/netmap.ko;
+               CONF="$CONF --with-netmap-path=/odp/netmap";
+               echo "Running test" ;
                docker run --privileged -i -t
-                 -v `pwd`:/odp -v/lib/modules:/lib/modules -v/usr/src:/usr/src --shm-size 8g
+                 -v `pwd`:/odp --shm-size 8g
                  -e CC="${CC}" -e LD="${LD}" -e CXX="${CXX}"
                  -e CONF="${CONF}" -e DPDK_SHARED="${DPDK_SHARED}"
                  ${DOCKER_NAMESPACE}/travis-odp-lng-x86 /odp/scripts/ci/build_x86_64.sh ;