]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
travis-ci: Do not make buildman warnings fatal
authorTom Rini <trini@konsulko.com>
Thu, 20 Oct 2016 15:05:57 +0000 (11:05 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 24 Oct 2016 12:06:27 +0000 (08:06 -0400)
We currently will always see a number of warnings due to device tree
issues.  These (and other warnings) should not make the build be marked
as failure so catch exit status 129 specifically and return 0 in that
case.

Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
.travis.yml

index 2f1d05d443f52cb0497ce8bdbf24439ce54caec2..d93efe02b0b144b130e5a6bfd106fb4d2823ca68 100644 (file)
@@ -69,8 +69,15 @@ script:
  - if [[ "${TEST_CMD}" != "" ]]; then
      ${TEST_CMD};
    fi
+ # Exit code 129 means warnings only.
  - if [[ "${BUILDMAN}" != "" ]]; then
+     set +e;
      tools/buildman/buildman ${BUILDMAN};
+     if [[ "$?" == "0" || "$?" == "129" ]]; then
+       exit 0;
+     else
+       exit $?;
+     fi
    fi
 
 matrix: