diff mbox series

[API-NEXT,v1,1/1] travis: add sudo for missing tests

Message ID 1497380406-6262-2-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v1,1/1] travis: add sudo for missing tests | expand

Commit Message

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


Add sudo to make tests run which require root. Also do not run
tests in parallel for coverage case. It's already very slow and
performance tests eat all cpu time. So the is situation where tests
can not fit in any reasonable limit frames.

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: 431473dcede3c2c5449e29c398181112fae208bf
 **/
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index d1ca5a66..df25d658 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" make check
                           - 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