@@ -33,27 +33,25 @@ right next to your setup.py file:
33
33
# whatever extra steps before testing might be necessary
34
34
pytest # or any other test runner that you might use
35
35
36
- .. Note ::
36
+ .. note ::
37
37
38
- Note
39
-
40
- You can also try generating a tox.ini file automatically, by running
41
- tox-quickstart and then answering a few simple questions.
42
- To sdist-package, install and test your project against Python2.7 and
43
- Python3.6, just type:
38
+ You can also try generating a tox.ini file automatically, by running
39
+ tox-quickstart and then answering a few simple questions.
40
+ To sdist-package, install and test your project against Python2.7 and
41
+ Python3.6, just type:
44
42
45
43
::
46
44
47
- tox
45
+ tox
46
+
47
+ .. note ::
48
48
49
- and watch things happening (you must have python2.7 and python3.6 installed
50
- in your environment
51
- otherwise you will see errors). When you run tox a second time you’ll note
52
- that it runs much faster
53
- because it keeps track of virtualenv details and will not recreate or
54
- re-install dependencies.
55
- You also might want to checkout tox configuration and usage examples to get
56
- some more ideas.
49
+ and watch things happening (you must have python2.7 and python3.6
50
+ installed in your environment otherwise you will see errors). When
51
+ you run tox a second time you’ll note that it runs much faster
52
+ because it keeps track of virtualenv details and will not recreate or
53
+ re-install dependencies.You also might want to checkout tox configuration
54
+ and usage examples to get some more ideas.
57
55
58
56
Sections
59
57
--------
@@ -63,26 +61,27 @@ on all subsections inside of a tox section please refer to the tox
63
61
documentation.
64
62
65
63
- ``tox `` : This section contains the ``envlist `` which is used to create
66
- our dynamic matrix. Refer to the `section here <http://tox.readthedocs.io/
67
- en/latest/config.html#generating-environments-conditional-settings> `_ for
68
- more information on how the ``envlist `` works.
64
+ our dynamic matrix. Refer to the `section here <http://tox.readthedocs.io/
65
+ en/latest/config.html#generating-environments-conditional-settings> `_ for
66
+ more information on how the ``envlist `` works.
69
67
70
68
- ``purge `` : This section contains commands that only run for scenarios
71
- that purge the cluster and redeploy. You'll see this section being reused in
69
+ that purge the cluster and redeploy. You'll see this section being reused in
72
70
``testenv``with the following syntax: ``{[purge]commands} ``
73
71
74
72
- ``update `` : This section contains commands taht only run for scenarios
75
- that
76
- deploy a cluster and then upgrade it to another Ceph version.
73
+ that
74
+ deploy a cluster and then upgrade it to another Ceph version.
77
75
78
76
- ``testenv `` : This is the main section of the ``tox.ini `` file and is run
79
- on every scenario. This section contains many *factors * that define
80
- conditional settings depending on the scenarios defined in the ``envlist ``.
81
- For example, the factor``centos7_cluster`` in the ``changedir `` subsection
82
- of ``testenv `` sets the directory that tox will change do when that factor
83
- is selected. This is an important behavior that allows us to use the same
77
+ on every scenario. This section contains many *factors * that define
78
+ conditional settings depending on the scenarios defined in the
79
+ ``envlist ``.
80
+ For example, the factor``centos7_cluster`` in the ``changedir `` subsection
81
+ of ``testenv `` sets the directory that tox will change do when that factor
82
+ is selected. This is an important behavior that allows us to use the same
84
83
``tox.ini `` and reuse commands while tweaking certain sections per testing
85
- scenario.
84
+ scenario.
86
85
87
86
Modifying or Adding environments
88
87
--------------------------------
0 commit comments