From 15e4dbd5aa696f0ef529732ca36b93c9da7f75df Mon Sep 17 00:00:00 2001 From: Bryan Quigley Date: Wed, 20 Mar 2019 09:52:46 -0700 Subject: [travis] robustness, actually fail on errors This makes sure if we get errors (anything to stderr) in the build it gets flagged. Today, it can be easily silently ignored. Current build is broken by recent lgtm pull. Resolves: #1603 Signed-off-by: Bryan Quigley Signed-off-by: Bryn M. Reeves --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 93c54693..1b54c599 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,9 @@ script: - "nosetests -v --with-cover --cover-package=sos --cover-html" - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --help" - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport -l --config-file=sos.conf" - - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport -n kernel --batch --config-file=sos.conf | tee batch_output" + - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --config-file=sos.conf 2> errors | tee batch_output" + - "[[ ! -s errors ]]" + - "cat errors" + - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --build --config-file=sos.conf" git: depth: 5 -- cgit