-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create tox.rst #578
base: master
Are you sure you want to change the base?
Create tox.rst #578
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
What is Tox? | ||
=============== | ||
|
||
tox is a generic virtualenv management and test command line tool you can use | ||
for: | ||
|
||
- checking your package installs correctly with different Python versions and | ||
interpreters | ||
- running your tests in each of the environments, configuring your test tool | ||
of choice | ||
- acting as a frontend to Continuous Integration servers, greatly reducing | ||
boilerplate and merging CI and shell-based testing. | ||
|
||
taken from `tox.readthedocs.io | ||
<https://tox.readthedocs.io/en/latest/>`_. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: |
||
Basic example. | ||
---------------------------------------------------------------- | ||
First, install tox with pip install tox. Then put basic information about | ||
your project and the test | ||
environments you want your project to run in into a tox.ini file residing | ||
right next to your setup.py file: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -43,7 +43,7 @@
::
tox
-
+
.. note::
and watch things happening (you must have python2.7 and python3.6 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -43,7 +43,7 @@
::
tox
-
+
.. note::
and watch things happening (you must have python2.7 and python3.6 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -43,7 +43,7 @@
::
tox
-
+
.. note::
and watch things happening (you must have python2.7 and python3.6 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -43,7 +43,7 @@
::
tox
-
+
.. note::
and watch things happening (you must have python2.7 and python3.6 |
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "Note" directive; none found. Origin: RSTcheckBear, Section: |
||
:: | ||
|
||
# content of: tox.ini , put in same dir as setup.py | ||
[tox] | ||
envlist = py27,py36 | ||
[testenv] | ||
deps = pytest # install pytest in the virtualenv where commands | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmppc6z3ziq/Users/tox.rst
+++ b/tmp/tmppc6z3ziq/Users/tox.rst
@@ -39,7 +39,7 @@
You can also try generating a tox.ini file automatically, by running
tox-quickstart and then answering a few simple questions.
-To sdist-package, install and test your project against Python2.7 and
+To sdist-package, install and test your project against Python2.7 and
Python3.6, just type:
:: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmppc6z3ziq/Users/tox.rst
+++ b/tmp/tmppc6z3ziq/Users/tox.rst
@@ -39,7 +39,7 @@
You can also try generating a tox.ini file automatically, by running
tox-quickstart and then answering a few simple questions.
-To sdist-package, install and test your project against Python2.7 and
+To sdist-package, install and test your project against Python2.7 and
Python3.6, just type:
:: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmppc6z3ziq/Users/tox.rst
+++ b/tmp/tmppc6z3ziq/Users/tox.rst
@@ -39,7 +39,7 @@
You can also try generating a tox.ini file automatically, by running
tox-quickstart and then answering a few simple questions.
-To sdist-package, install and test your project against Python2.7 and
+To sdist-package, install and test your project against Python2.7 and
Python3.6, just type:
:: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmppc6z3ziq/Users/tox.rst
+++ b/tmp/tmppc6z3ziq/Users/tox.rst
@@ -39,7 +39,7 @@
You can also try generating a tox.ini file automatically, by running
tox-quickstart and then answering a few simple questions.
-To sdist-package, install and test your project against Python2.7 and
+To sdist-package, install and test your project against Python2.7 and
Python3.6, just type:
:: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmppc6z3ziq/Users/tox.rst
+++ b/tmp/tmppc6z3ziq/Users/tox.rst
@@ -39,7 +39,7 @@
You can also try generating a tox.ini file automatically, by running
tox-quickstart and then answering a few simple questions.
-To sdist-package, install and test your project against Python2.7 and
+To sdist-package, install and test your project against Python2.7 and
Python3.6, just type:
:: |
||
will be executed | ||
commands = | ||
# whatever extra steps before testing might be necessary | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -46,7 +46,7 @@
.. note::
- and watch things happening (you must have python2.7 and python3.6
+ and watch things happening (you must have python2.7 and python3.6
installed in your environment otherwise you will see errors). When
you run tox a second time you’ll note that it runs much faster
because it keeps track of virtualenv details and will not recreate or There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -46,7 +46,7 @@
.. note::
- and watch things happening (you must have python2.7 and python3.6
+ and watch things happening (you must have python2.7 and python3.6
installed in your environment otherwise you will see errors). When
you run tox a second time you’ll note that it runs much faster
because it keeps track of virtualenv details and will not recreate or There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -46,7 +46,7 @@
.. note::
- and watch things happening (you must have python2.7 and python3.6
+ and watch things happening (you must have python2.7 and python3.6
installed in your environment otherwise you will see errors). When
you run tox a second time you’ll note that it runs much faster
because it keeps track of virtualenv details and will not recreate or There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -46,7 +46,7 @@
.. note::
- and watch things happening (you must have python2.7 and python3.6
+ and watch things happening (you must have python2.7 and python3.6
installed in your environment otherwise you will see errors). When
you run tox a second time you’ll note that it runs much faster
because it keeps track of virtualenv details and will not recreate or |
||
pytest # or any other test runner that you might use | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpv5iq47vm/Users/tox.rst
+++ b/tmp/tmpv5iq47vm/Users/tox.rst
@@ -32,7 +32,7 @@
commands =
# whatever extra steps before testing might be necessary
pytest # or any other test runner that you might use
-
+
.. note::
You can also try generating a tox.ini file automatically, by running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpez36okvv/Users/tox.rst
+++ b/tmp/tmpez36okvv/Users/tox.rst
@@ -32,7 +32,7 @@
commands =
# whatever extra steps before testing might be necessary
pytest # or any other test runner that you might use
-
+
.. note::
You can also try generating a tox.ini file automatically, by running |
||
.. note:: | ||
ManthanKeim marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (ERROR/3) Content block expected for the "note" directive; none found. Origin: RSTcheckBear, Section: |
||
|
||
You can also try generating a tox.ini file automatically, by running | ||
tox-quickstart and then answering a few simple questions. | ||
To sdist-package, install and test your project against Python2.7 and | ||
Python3.6, just type: | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmp7bj7i79f/Users/tox.rst
+++ b/tmp/tmp7bj7i79f/Users/tox.rst
@@ -33,7 +33,7 @@
commands =
# whatever extra steps before testing might be necessary
pytest # or any other test runner that you might use
-
+
Note
You can also try generating a tox.ini file automatically, by running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmp7bj7i79f/Users/tox.rst
+++ b/tmp/tmp7bj7i79f/Users/tox.rst
@@ -33,7 +33,7 @@
commands =
# whatever extra steps before testing might be necessary
pytest # or any other test runner that you might use
-
+
Note
You can also try generating a tox.ini file automatically, by running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmp7bj7i79f/Users/tox.rst
+++ b/tmp/tmp7bj7i79f/Users/tox.rst
@@ -33,7 +33,7 @@
commands =
# whatever extra steps before testing might be necessary
pytest # or any other test runner that you might use
-
+
Note
You can also try generating a tox.ini file automatically, by running |
||
:: | ||
|
||
tox | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmptbtcsw2n/Users/tox.rst
+++ b/tmp/tmptbtcsw2n/Users/tox.rst
@@ -43,7 +43,7 @@
::
tox
-
+
.. note::
and watch things happening (you must have python2.7 and python3.6 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpv5iq47vm/Users/tox.rst
+++ b/tmp/tmpv5iq47vm/Users/tox.rst
@@ -43,7 +43,7 @@
::
tox
-
+
.. note::
and watch things happening (you must have python2.7 and python3.6 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpez36okvv/Users/tox.rst
+++ b/tmp/tmpez36okvv/Users/tox.rst
@@ -43,7 +43,7 @@
::
tox
-
+
.. note::
and watch things happening (you must have python2.7 and python3.6 |
||
.. note:: | ||
|
||
and watch things happening (you must have python2.7 and python3.6 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmptbtcsw2n/Users/tox.rst
+++ b/tmp/tmptbtcsw2n/Users/tox.rst
@@ -46,7 +46,7 @@
.. note::
- and watch things happening (you must have python2.7 and python3.6
+ and watch things happening (you must have python2.7 and python3.6
installed in your environment otherwise you will see errors). When
you run tox a second time you’ll note that it runs much faster
because it keeps track of virtualenv details and will not recreate or There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpv5iq47vm/Users/tox.rst
+++ b/tmp/tmpv5iq47vm/Users/tox.rst
@@ -46,7 +46,7 @@
.. note::
- and watch things happening (you must have python2.7 and python3.6
+ and watch things happening (you must have python2.7 and python3.6
installed in your environment otherwise you will see errors). When
you run tox a second time you’ll note that it runs much faster
because it keeps track of virtualenv details and will not recreate or There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpez36okvv/Users/tox.rst
+++ b/tmp/tmpez36okvv/Users/tox.rst
@@ -46,7 +46,7 @@
.. note::
- and watch things happening (you must have python2.7 and python3.6
+ and watch things happening (you must have python2.7 and python3.6
installed in your environment otherwise you will see errors). When
you run tox a second time you’ll note that it runs much faster
because it keeps track of virtualenv details and will not recreate or |
||
installed in your environment otherwise you will see errors). When | ||
you run tox a second time you’ll note that it runs much faster | ||
because it keeps track of virtualenv details and will not recreate or | ||
re-install dependencies.You also might want to checkout tox configuration | ||
and usage examples to get some more ideas. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is longer than allowed. (80 > 79) Origin: LineLengthBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is longer than allowed. (80 > 79) Origin: LineLengthBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is longer than allowed. (80 > 79) Origin: LineLengthBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is longer than allowed. (80 > 79) Origin: LineLengthBear, Section: |
||
Sections | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (WARNING/2) Definition list ends without a blank line; unexpected unindent. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (WARNING/2) Definition list ends without a blank line; unexpected unindent. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (WARNING/2) Definition list ends without a blank line; unexpected unindent. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (WARNING/2) Definition list ends without a blank line; unexpected unindent. Origin: RSTcheckBear, Section: |
||
-------- | ||
The ``tox.ini`` file has a number of top level sections defined by ``[ ]`` | ||
and subsections within those. For complete documentation | ||
on all subsections inside of a tox section please refer to the tox | ||
documentation. | ||
|
||
- ``tox`` : This section contains the ``envlist`` which is used to create | ||
our dynamic matrix. Refer to the `section here <http://tox.readthedocs.io/ | ||
en/latest/config.html#generating-environments-conditional-settings>`_ for | ||
more information on how the ``envlist`` works. | ||
|
||
- ``purge`` : This section contains commands that only run for scenarios | ||
that purge the cluster and redeploy. You'll see this section being reused in | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is longer than allowed. (80 > 79) Origin: LineLengthBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is longer than allowed. (80 > 79) Origin: LineLengthBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is longer than allowed. (80 > 79) Origin: LineLengthBear, Section: |
||
``testenv``with the following syntax: ``{[purge]commands}`` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (WARNING/2) Definition list ends without a blank line; unexpected unindent. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (WARNING/2) Definition list ends without a blank line; unexpected unindent. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (WARNING/2) Definition list ends without a blank line; unexpected unindent. Origin: RSTcheckBear, Section: |
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -75,7 +75,7 @@
- ``testenv`` : This is the main section of the ``tox.ini`` file and is run
on every scenario. This section contains many *factors* that define
- conditional settings depending on the scenarios defined in the
+ conditional settings depending on the scenarios defined in the
``envlist``.
For example, the factor``centos7_cluster`` in the ``changedir`` subsection
of ``testenv`` sets the directory that tox will change do when that factor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -75,7 +75,7 @@
- ``testenv`` : This is the main section of the ``tox.ini`` file and is run
on every scenario. This section contains many *factors* that define
- conditional settings depending on the scenarios defined in the
+ conditional settings depending on the scenarios defined in the
``envlist``.
For example, the factor``centos7_cluster`` in the ``changedir`` subsection
of ``testenv`` sets the directory that tox will change do when that factor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -75,7 +75,7 @@
- ``testenv`` : This is the main section of the ``tox.ini`` file and is run
on every scenario. This section contains many *factors* that define
- conditional settings depending on the scenarios defined in the
+ conditional settings depending on the scenarios defined in the
``envlist``.
For example, the factor``centos7_cluster`` in the ``changedir`` subsection
of ``testenv`` sets the directory that tox will change do when that factor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpmko85bk1/Users/tox.rst
+++ b/tmp/tmpmko85bk1/Users/tox.rst
@@ -75,7 +75,7 @@
- ``testenv`` : This is the main section of the ``tox.ini`` file and is run
on every scenario. This section contains many *factors* that define
- conditional settings depending on the scenarios defined in the
+ conditional settings depending on the scenarios defined in the
``envlist``.
For example, the factor``centos7_cluster`` in the ``changedir`` subsection
of ``testenv`` sets the directory that tox will change do when that factor |
||
- ``update`` : This section contains commands taht only run for scenarios | ||
that | ||
deploy a cluster and then upgrade it to another Ceph version. | ||
|
||
- ``testenv`` : This is the main section of the ``tox.ini`` file and is run | ||
on every scenario. This section contains many *factors* that define | ||
conditional settings depending on the scenarios defined in the | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmptbtcsw2n/Users/tox.rst
+++ b/tmp/tmptbtcsw2n/Users/tox.rst
@@ -75,7 +75,7 @@
- ``testenv`` : This is the main section of the ``tox.ini`` file and is run
on every scenario. This section contains many *factors* that define
- conditional settings depending on the scenarios defined in the
+ conditional settings depending on the scenarios defined in the
``envlist``.
For example, the factor``centos7_cluster`` in the ``changedir`` subsection
of ``testenv`` sets the directory that tox will change do when that factor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpv5iq47vm/Users/tox.rst
+++ b/tmp/tmpv5iq47vm/Users/tox.rst
@@ -75,7 +75,7 @@
- ``testenv`` : This is the main section of the ``tox.ini`` file and is run
on every scenario. This section contains many *factors* that define
- conditional settings depending on the scenarios defined in the
+ conditional settings depending on the scenarios defined in the
``envlist``.
For example, the factor``centos7_cluster`` in the ``changedir`` subsection
of ``testenv`` sets the directory that tox will change do when that factor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line contains following spacing inconsistencies:
Origin: SpaceConsistencyBear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpez36okvv/Users/tox.rst
+++ b/tmp/tmpez36okvv/Users/tox.rst
@@ -75,7 +75,7 @@
- ``testenv`` : This is the main section of the ``tox.ini`` file and is run
on every scenario. This section contains many *factors* that define
- conditional settings depending on the scenarios defined in the
+ conditional settings depending on the scenarios defined in the
``envlist``.
For example, the factor``centos7_cluster`` in the ``changedir`` subsection
of ``testenv`` sets the directory that tox will change do when that factor |
||
``envlist``. | ||
For example, the factor``centos7_cluster`` in the ``changedir`` subsection | ||
of ``testenv`` sets the directory that tox will change do when that factor | ||
is selected. This is an important behavior that allows us to use the same | ||
``tox.ini`` and reuse commands while tweaking certain sections per testing | ||
scenario. | ||
|
||
Modifying or Adding environments | ||
-------------------------------- | ||
|
||
The tox environments are controlled by the ``envlist`` subsection of the | ||
``[tox]`` section. Anything inside of ``{}`` is considered a *factor* and | ||
will be included | ||
in the dynamic matrix that tox creates. Inside of ``{}`` you can include | ||
a comma separated list of the *factors*. Do not use a hyphen (``-``) as part | ||
of the *factor* name as those are used by tox as the separator between | ||
different factor sets. | ||
|
||
For example, if wanted to add a new test *factor* for the next Ceph | ||
release of luminious this is how you'd accomplish that. Currently, the first | ||
factor set in our ``envlist`` | ||
is used to define the Ceph release (``{jewel,kraken,rhcs}-...``). To add | ||
luminous you'd change that to look like ``{luminous,kraken,rhcs}-...``. | ||
In the ``testenv`` section | ||
this is a subsection called ``setenv`` which allows you to provide environment | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (INFO/1) Hyperlink target "tox-sections" is not referenced. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (INFO/1) Hyperlink target "tox-sections" is not referenced. Origin: RSTcheckBear, Section: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (INFO/1) Hyperlink target "tox-sections" is not referenced. Origin: RSTcheckBear, Section: |
||
variables to the tox environment and we support an environment variable | ||
called ``CEPH_STABLE_RELEASE``. | ||
To ensure that all the new tests that are created by adding the luminous | ||
*factor* you'd do this in that section: | ||
``luminous: CEPH_STABLE_RELEASE=luminous``. | ||
|
||
Note | ||
|
||
For more information about Tox configuration, consult the | ||
`official documentation <https://tox.readthedocs.io/en/latest/>`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(ERROR/3) Content block expected for the "Note" directive; none found.
Origin: RSTcheckBear, Section:
rstcheck
.