aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
Commit message (Collapse)AuthorAgeFilesLines
* [travis] Update 18.04 native run to install pexpectJake Hunsaker2020-04-221-1/+1
| | | | | | | Adds pexpect to the 18.04 native run installation step. For now, leaving it out of the 16.04 run. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
* [build] Update setuptools for new package layout, remove python2 testsJake Hunsaker2020-04-081-9/+0
| | | | | | | | | | | | | Updates setup.py to reflect project changes with 4.0, thus allowing the 'python setup.py install' checks to run normally. Removes futures from requirements.txt, as futures is packaged with python 3.4 and newer, and sos no longer supports python2. In that vein, also removes the pytohn-2.7 test from the travis configuration. Resolves: #2004 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
* [travis] Move to single test script and use travis job matrixBryan Quigley2020-02-041-28/+61
| | | | | | | | | | | | | | | | | | | | | | Move all the sosreport runs to a simple bash script: tests/simple.sh so it can be called multiple times. This also makes it possible to run locally. The travis job matrix let's us have 2 Ubuntu native sos runs against installed python, while letting us to also continue to do the old style python runs. Ideally, we can utilize this to do Fedora/CentOS/RHEL jobs in the future. Python 3.4 testing was also dropped - as it seems to not be as well used (many test failures due to not being available). Python 3.8 testing was added. pycodestyle will only run once with the bionic version. Resolves: #1896 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
* [logs] Substancial rewrite ending RH/U/D differencesBryan Quigley2019-12-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | --all-logs totally broke due to extra s in get_options, this resulted in me trying to fix it, but it's simply grown too complicated IMHO. We're duplicating functionality differently in the RH and Ubuntu/Debian sections. Logs.py changes: Dropped the log_days option as it's confusing with since. Use journal if persistant, otherwise don't collect it. If all-logs collect full raw journal insteaf of verbose as it's the same size but collects more info and is easier to parse. Still collecting catalog for this/last boot ignoring since. RH request. Collect message/secure no matter what. Rh specific. Collect first 3 syslog/kern/auth only if not-journal. Default to just stop at 100mb limit jounral limit (which is enforced outside of plugin). Also implement some basic "did it error" travis checks for the above. Resolves: #1822 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
* [travis] robustness, actually fail on errorsBryan Quigley2019-03-261-1/+4
| | | | | | | | | | | | 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>
* [travis] Update python versions and 14.04 -> 16.04Bryan Quigley2019-03-041-3/+3
| | | | | | | | | | | | | | The change notes specifically mention how they've improved performance including boot times with 16.04. Python 3.7 is now stable. Add --version flag for pycodestyle. Resolves: #1554 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [global] Transition to pycodestyleJake Hunsaker2018-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'pep8' tool has been renamed to 'pycodestyle' to avoid confusion with pep8 the document. pep8 (the tool) will no longer be updated and as such we should transition to the new pycodestyle. This commit fixes a number of PEP8 issues with the new pycodestyle linter that has tests for new additions to PEP8 that the pep8 tool did not include. Most of these are exception handling fixes like: sos/plugins/logs.py:96:13: E722 do not use bare 'except' Which are relatively straight forward to address, by instead catching just the applicable exceptions, e.g. IOError, ValueError, etc... In cases where there were many possible exceptions or where the "bare 'except'" was a final catch-all, we now use 'except Exception' to catch anything from the base exception class. Another frequent correction was for escape sequencing, such as: sos/plugins/logs.py:48:15: W605 invalid escape sequence '\S' The solution for this is to mark these regex strings as raw strings, which is preferred by `re` as future releases of that module may/will become more strict in its parsing of regex strings. Resolves: #1344 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [build] Added dependencies in requirementsSachin2018-03-131-1/+1
| | | | | | | | | * Updated instructions in README to install Python dependencies * Added an example to create HTML docs * Added instruction to optionally run 'make test' before sending a PR * Relavant changes made in .travis.yml to test requirements Signed-off-by: Sachin Patil <sacpatil@redhat.com>
* [travis] Update travis with sudo and new pythonBryan Quigley2017-11-291-5/+12
| | | | | | | | | | | | Bumps requirement for CI to work on Python 3.5, 3.6, 3.7-dev. To enable sudo we bump the release to trusty. Dropped the depth to 5 as we aren't doing git commands. Running --help and -l at the moment (but that should have found issue 938) Also running with --batch to test basic running. Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <battlemidget@users.noreply.github.com>
* [travis-ci] Remove deprecated --use-mirrorsAdam Stokes2015-09-291-1/+1
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [travis-ci] support 3.5 and nightly buildsAdam Stokes2015-09-291-0/+6
| | | | | | | Expand the test coverage for Python 3.5 and nightly build runtimes. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Update travis-ci build propertiesAdam Stokes2015-09-291-2/+1
| | | | | | | Utilize their container based build system for faster runs. Update test version matrix. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [travis-ci] run pep8 against code treeAdam Stokes2014-08-021-1/+2
| | | | | | | | To ensure proper code formatting and syntax is being done this enables travis-ci to continually check pep8 compliance. This is useful as it will tend to spot a lot of syntax errors that the unittests may not pick up. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* travis-ci supports python 3.4Adam Stokes2014-05-291-3/+0
| | | | | | | now that travis-ci supports python 3.4 we make the unittests pass on that version a requirement. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Allow failures for python 3.4 on travis-ciAdam Stokes2014-04-071-0/+3
| | | | | | | | Looks like python 3.4 is not ready available on travis-ci.org. We'll make 3.4 unit testing a requirement once travis-ci makes python 3.4 an available environment. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Bring python 3.4 into the testing matrixAdam Stokes2014-04-071-0/+1
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* add python 3.2 for Ubuntu Precise releaseAdam Stokes2014-04-041-0/+1
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Add mail notification to sos-devel in travis configurationBryn M. Reeves2014-04-031-1/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* Update CI specAdam Stokes2013-10-301-4/+1
| | | | | | | Remove allow failures for python 3.3 as all tests should now pass going forward. Also install six via pip for unittests on travis-ci Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Update travis-ci notifications for ircAdam Stokes2013-09-081-0/+4
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Add support for distutilsAdam Stokes2013-07-261-6/+2
| | | | | | | | | | - We are planning on moving to python distutils for future packaging however, we still want to keep our current build infrastructure around until we are able to test the builds overtime. For now distutils will live alongside the current build process and slowly replace the Makefiles once deemed fit. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Correct archive unittests and pep8 conformity in archive classAdam Stokes2013-07-251-0/+1
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Remove make gpgkey in travis build scriptAdam Stokes2013-04-261-1/+0
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* - Remove unused DEPS envAdam Stokes2013-04-041-3/+0
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Include coverage module during CI testsAdam Stokes2013-04-041-0/+1
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* remove python 2.6 build support and allow failure of python 3.x testsAdam Stokes2013-04-041-1/+6
| | | | Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Fix unittests and more pep8 conformingAdam Stokes2013-04-041-0/+15
- In our unittest we defined 'is_installed' to be a bool when in fact we wanted to verify if a package is installed via the _method_ is is_installed. Since overriding that method with our variable definition we basically removed any functionality of 'is_installed' method in Plugin class. - Initializing a fake plugin to test was failing due to our global logger not being initialized. Put a simple check in the library to make sure the logger is defined no matter what the calling state does. - Make import selinux conditional - Add travis-ci support - Rename README to utilize travis-ci build status and other markdown supported features Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>