aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Quigley <bryan.quigley@canonical.com>2019-03-20 09:52:46 -0700
committerBryn M. Reeves <bmr@redhat.com>2019-03-26 11:55:22 +0000
commit15e4dbd5aa696f0ef529732ca36b93c9da7f75df (patch)
tree5b943b8fc7f514e5596f7fbc7046bdd00f5c532f
parent40b315d8626dcc8d9ac52d6b44fc7666b100b6b9 (diff)
downloadsos-15e4dbd5aa696f0ef529732ca36b93c9da7f75df.tar.gz
[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 <bryan.quigley@canonical.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--.travis.yml5
1 files changed, 4 insertions, 1 deletions
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