Browse Source

show the logs if tests fail

tags/json-c-0.14-20200419
andy5995 6 years ago
parent
commit
57e79e1d0b
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      .travis.yml

+ 3
- 4
.travis.yml View File

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

Loading…
Cancel
Save