Skip to content

Commit

Permalink
[travis] robustness, actually fail on errors
Browse files Browse the repository at this point in the history
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.

3.4 python also appears to be broken by something else.

Signed-off-by: Bryan Quigley <[email protected]>
  • Loading branch information
Bryan Quigley committed Mar 21, 2019
1 parent 9915987 commit b69e977
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b69e977

Please sign in to comment.