]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
show the logs if tests fail
authorandy5995 <andy400-dev@yahoo.com>
Wed, 24 Jul 2019 18:30:10 +0000 (13:30 -0500)
committerandy5995 <andy400-dev@yahoo.com>
Sat, 27 Jul 2019 03:24:12 +0000 (22:24 -0500)
.travis.yml

index b64c5a40fd2ba711be554eb930378d733ed9fc60..91ee2891e14dc94188ff5d8d9aaccb043c03f570 100644 (file)
@@ -29,10 +29,9 @@ script:
   - make\r
 \r
 after_success:\r
-  - make check\r
-  - result=$?\r
-  - if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi\r
+  - make check ; result=$?\r
   - if [ $result != 0 ]; then\r
       cat tests/*.log;\r
-      exit $result;\r
     fi\r
+  - if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi\r
+  - exit $result\r