diff mbox series

[v1,1/1] travis: correct doxygen warning capture

Message ID 1506369616-26859-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/1] travis: correct doxygen warning capture | expand

Commit Message

Github ODP bot Sept. 25, 2017, 8 p.m. UTC
From: Maxim Uvarov <maxim.uvarov@linaro.org>


use if else bash syntax for grep warnings from
log.

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

---
/** Email created from pull request 191 (muvarov:master_doxwarns)
 ** https://github.com/Linaro/odp/pull/191
 ** Patch: https://github.com/Linaro/odp/pull/191.patch
 ** Base sha: c2ed3f71a8d61449c5e35ce201f020a74a8ea244
 ** Merge commit sha: e93a035d908ca8d224ca3a24fe2ebc85889781f6
 **/
 .travis.yml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index a9ae219dc..395feb0ef 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -249,11 +249,17 @@  jobs:
                             fi
 
                           - export PATH=$HOME/doxygen-install/bin:$PATH
-                          # doxygen does not trap on warnings, check for them here.
                           - ./bootstrap
                           - ./configure
+                          # doxygen does not trap on warnings, check for them here.
                           - make doxygen-doc 2>&1 |tee doxygen.log
-                          - fgrep -rq warning ./doxygen.log && false
+                          - |
+                             fgrep -rq warning ./test.log
+                             if [ $? -eq 0 ]; then
+                               false
+                             else
+                               true
+                             fi
                 - stage: test
                   env: TEST=checkpatch
                   compiler: gcc