Commit Graph

11 Commits

Author SHA1 Message Date
Darragh Bailey d45998bf05 Add tox env for checking links in docs
Change-Id: I99c924c7cdec488475f32099193cba53ed6afb4c
2016-11-08 12:13:32 +00:00
Darragh Bailey 98b283ec37 Include files for sphinx based documentation
Change-Id: I5d6a30d986bc82cc22f0b095a000fe7e055fc588
2016-11-01 19:06:52 +00:00
Darragh Bailey 7a135a1705 Enable default GIT_PYTHON_TRACE for tests
Have tests set the GIT_PYTHON_TRACE by default, to ensure that on error
we have a detailed log of all git commands executed.

Default to setting basic tracing, and support passing through of the
environment variable via tox.ini so that users may control the level of
logging by setting the variable.

 # disable all output from GitPython
 GIT_PYTHON_TRACE= tox ...

 # log all commands executed, default for tests
 GIT_PYTHON_TRACE=1 tox ...

 # includes stdout/stderr from GitPython in logged output
 GIT_PYTHON_TRACE=full tox ...

Change-Id: I71eb8f572bc2afd70f9a44f82499565fbbd4e872
2016-09-16 14:55:42 +01:00
Darragh Bailey f37890bb31 Add tool to recreate git repo from test scenarios
Provides a simple tool 'build-test-tree' and adds a tox environment
command 'build-tree' which takes as arguments a list of yaml files
separated by spaces of test trees to recreate for the developer to
experiment with different layouts and commands.

This simplifies the creation for development purposes some of the
complex scenarios that need to be tested, to provide a mechanism for
any developer to quickly exercise various git commands directly to
understand the impact before trying to apply such changes to the
existing code.

Example execution:

  tox -e build-tree -- git_upstream/tests/commands/import/scenarios/\
import_switch_branches_search_ref_custom_namespace.yaml

Change-Id: I801bc3e05197d1ce41e703876ce6f46a705ad935
2016-06-30 17:54:05 +00:00
Darragh Bailey 62def85b6b Support for python 3
Support using python 3 interpreter.

Fix imports and metaclass definition to be python 2/3 compatible.
Update min requirements to use GitPython that is python 3 compatible
and works with openstack global-requirements.
Use '//' for integer division and used brackets around tuple iterations.

Change-Id: I51617a433987d1549e0686c1feda01f971b13fa0
2016-06-14 16:15:22 +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 dfe55f6827 Update hacking, enable some checks and fix style issues
Change-Id: Idf488af73dca3aee7c024bea4d93361be2008ce0
2015-01-29 20:46:45 +00:00
Tom Cammann 466997aad3 Remove ignored PEP8 rule E125 from tox.ini
Include E125 in PEP8 checks, it does not cause any failures and turning
on this rule will help prevent violations in the future.

Change-Id: I9b0fa6e63cc017af8b90a54d6f4f58dd43d97440
2014-09-30 22:35:58 +01:00
Monty Taylor ea723f4680 Rename doc environment to docs
As per the governance resolution https://review.openstack.org/119875,
projects should have a docs environment in their tox.ini testing
interface. Rename the doc environment to docs.

Change-Id: I10f561c2f8c609eeec80de19a21d63ef3583388a
2014-09-08 13:51:21 -07:00
Darragh Bailey 555a9f13e3 Rename generate man page command
build_manpage is more obvious than create_manpage as most python
setuptools around generation of output ready for install are prefixed
with 'build_'.
2014-07-15 12:22:37 +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