Commit Graph

17 Commits

Author SHA1 Message Date
Darragh Bailey a4062de4ae Switch to using fixtures-git for testing
Use library to handle setup of fixtures for testing with git.

Change-Id: I5b39f8d52beca848adb20d646c26d91c4b977b92
2020-01-23 11:23:49 +00:00
Darragh Bailey 25f950e0e4 Update requirements to align
Change-Id: I8af89a361458f3222fe924532697b8596f659d32
2020-01-14 12:02:57 +00:00
Andreas Jaeger 1c6ac903da Update docs jobs
Replace obsolete build-sphinx job with tox-docs which runs "tox -e docs"
directly.

Update sphinx requirements for python 3.

Depends-On: https://review.opendev.org/660026
Change-Id: Ibb22861e7b1e0e1e40f155043db8b3e554eaf246
2019-05-20 09:14:47 +02:00
Darragh Bailey 95e6c5bea5 Align with openstack check-requirements
Replace loremipsum with faker, drop discover as unneeded and ensure any
remaining requirements match the minimum requirements.

Change-Id: Ia5c5b033173c09e899e52b23f548ff822af998f0
2018-06-29 20:19:35 +01:00
Darragh Bailey f60d242137 Update to latest Sphinx for documentation
Roll forward to recent version of sphinx for documentation generation.

Change-Id: I9dadd6304cad15b58d39a1014c6804b4e32363ad
2017-04-11 18:03:20 +01:00
Jenkins 34c72e9e39 Merge "Regression test for sequence editor causing hang" 2016-11-28 11:23:44 +00:00
Darragh Bailey dfa212ffd0 Regression test for sequence editor causing hang
Add simple regression test to ensure that setting sequence.editor will
not cause a hang, and add a timeout to interactive mode tests to ensure
they are terminated with an error should they fail to complete
reasonably quickly (suggesting a hang).

Early release 0.9.0 had an issue where setting sequence.editor would
cause git-upstream to hang, due to git-rebase attempting to launch the
editor specified, while the console was being redirected by python's
subprocess.

At some point a behaviour change meant the config setting
sequence.editor was no longer used by the python subprocess calling
git-rebase. Instead the tool would launch the user specified editor
directly (checking the git config settings for sequence.editor, then
core.editor, and falling back to the environment variable EDITOR if
neither were set), and would instead ensure that when finally calling
git-rebase it would only use the special editor provided by
git-upstream.

However it's still important to check that setting sequence.editor
does not cause any future problems such the code be refactored again.

Change-Id: I303dced0d1a52791d18b39e8e6d342374e3d2eeb
Related-Bug: #1394553
2016-11-18 17:49:43 +00:00
Darragh Bailey 363a88bf22 Use sphinxcontrib-fulltoc
Change side bar toc to a full toc to show both global and local toc
simultaneously.

Change-Id: Ied595bab97bccb8cd942c2a0b35a429d7ee88bfb
Depends-On: I8dced20b036c267799b609a6fa719f6afde89a10
2016-11-16 15:19:41 +00:00
Darragh Bailey 2455b7e10e Remove requirement sphinxcontrib-programoutput
Remove unused requirement sphinxcontrib-programoutput, as it has been
removed from pypi[1]. This causes the tox run to fail for developers
and automated CI trying to run the tests.

As this is not currently in use by the documentation, remove the
requirement. In the future it would be better to use
sphinxcontrib-autorun.

[1] https://pypi.python.org/pypi/sphinxcontrib-programoutput

Change-Id: I664ddd6f6de4a9767af5dca5b6a94817b2620f00
2016-11-01 12:46:31 +00:00
Alexis Lee a05425f161 Use a recent pbr
Old pbr (<1.0.0) doesn't recognise end-of-line comments:

  GitPython>=1.0.1 # BSD License (3 clause)

This results in requirements being passed to setuptools by pbr
containing the comment when running the following command:

  python setup.py install

Subsequently setuptools tries to parse the full string instead of just
the package and version bounds spec.

While version >=1.0.0 would be sufficient, openstack requirements CI
job requires that we align with the approved requirements bounds of
>=1.6 instead.

Additionally to avoid conflicts need to move to a more recent release
of 'hacking', releases before 0.10 prevent use of pbr>1.0.

Change-Id: I096c7a0ae7ae326c2dfd2930c4dd05b52bf84f51
2016-08-31 11:50:29 +01:00
Darragh Bailey 81ad238e9b Install coverage and fix command line to call
Ensure the coverage package is installed and fix the coverage command
line used from tox to cover the correct package name for the test
environment while excluding the unit tests.

Change-Id: Ieaca81e65ed2dbf7e7070be18a416f1858b48bb4
2016-03-20 13:16:12 +00:00
Darragh Bailey 5c523d6655 Begin conversion to testscenarios
Use testscenarios where possible due to the way parameters within each
scenario can be accessed directly on the object for providing additional
feedback in the case of failed tests.

Moves each searcher test into a separate yaml file to be loaded as a
scenario which helps separate test info and actual code performing the
test.

Change-Id: Ie86561a8a1b80dc66bfc4bd43bda3ba46b0a5a4a
2016-01-13 11:28:11 +00:00
Darragh Bailey 7158716f31 Use standard library for text generation
Change-Id: I4552784830304df72bf819317a321e1ecffd64e7
2015-11-26 23:17:31 +00:00
Darragh Bailey 7e9436f243 Mask broken versions of mock
Change-Id: Ide69b816fe9cc873eaa4672de57ce28698643ca1
2015-08-13 15:28:31 +01:00
Darragh Bailey dfe55f6827 Update hacking, enable some checks and fix style issues
Change-Id: Idf488af73dca3aee7c024bea4d93361be2008ce0
2015-01-29 20:46:45 +00:00
Darragh Bailey 9149c51d58 Basic tests for import and fix for additional branches
Some simple tests to ensure the basic command line behaviour of the
import sub-command is correct and also fix the failure to detect the
dropped additional branch on next import.

Change rebaseeditor script to ensure that exceptions from running
git-var are ignored.

Change-Id: I23f7e0798130335cac5882f4357eb8094f72f7af
2014-10-23 16:32:39 +01:00
Monty Taylor 942de1ae2e Prepared for upstream integration
Migrate build to pbr. Add tox.ini file. Removed debian dir.
2014-07-15 12:22:09 +01:00