[API-NEXT,v4,3/4] travis: add sudo run make check

Message ID 1497538809-15817-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • travis: add sudo for missing tests
Related show

Commit Message

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


make check has to be under root to validate pktio like
raw sockets. Also odp temporary files can overlap with
previous root run and permission to overwrite that files
is needed.

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

---
/** Email created from pull request 49 (muvarov:api-next_travis_fixes)
 ** https://github.com/Linaro/odp/pull/49
 ** Patch: https://github.com/Linaro/odp/pull/49.patch
 ** Base sha: 4f97e500a097928e308a415c32a88465adc5f5cc
 ** Merge commit sha: 9da6cb2fc4e7c9c4bb5da96da553c50eeffcec59
 **/
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/.travis.yml b/.travis.yml
index d1ca5a66..64f4ff88 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -130,7 +130,7 @@  jobs:
                   script:
                           - ./bootstrap
                           - ./configure --prefix=$HOME/odp-install --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET} --with-netmap-path=`pwd`/netmap CFLAGS="-O0 -coverage" CXXFLAGS="-O0 -coverage" LDFLAGS="--coverage"
-                          - make check -j $(nproc)
+                          - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" PATH=${PATH//:\.\/node_modules\/\.bin/} make check -j ${nproc}
                           - find . -type f -iname '*.[ch]' -not -path ".git/*" -execdir gcov {} \; ; bash <(curl -s https://codecov.io/bash) -X coveragepy
                 - stage: test
                   env: TEST=distcheck
@@ -138,7 +138,7 @@  jobs:
                   script:
                           - ./bootstrap
                           - ./configure
-                          - make distcheck
+                          - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" make distcheck
                 - stage: test
                   env: TEST=doxygen
                   compiler: gcc