Phil Dawson pushed to branch master at BuildStream / buildstream
Commits:
2 changed files:
Changes:
... | ... | @@ -1589,6 +1589,15 @@ can run ``tox`` with ``-r`` or ``--recreate`` option. |
1589 | 1589 |
|
1590 | 1590 |
./setup.py test --addopts 'tests/frontend/buildtrack.py::test_build_track'
|
1591 | 1591 |
|
1592 |
+.. tip::
|
|
1593 |
+ |
|
1594 |
+ We also have an environment called 'venv' which takes any arguments
|
|
1595 |
+ you give it and runs them inside the same virtualenv we use for our
|
|
1596 |
+ tests::
|
|
1597 |
+ |
|
1598 |
+ tox -e venv -- <your command(s) here>
|
|
1599 |
+
|
|
1600 |
+ Any commands after ``--`` will be run a virtualenv managed by tox.
|
|
1592 | 1601 |
|
1593 | 1602 |
Observing coverage
|
1594 | 1603 |
~~~~~~~~~~~~~~~~~~
|
... | ... | @@ -91,3 +91,14 @@ commands = |
91 | 91 |
deps =
|
92 | 92 |
click-man >= 0.3.0
|
93 | 93 |
-rrequirements/requirements.txt
|
94 |
+ |
|
95 |
+#
|
|
96 |
+# Usefull for running arbitrary scripts in a BuildStream virtual env
|
|
97 |
+#
|
|
98 |
+[testenv:venv]
|
|
99 |
+commands = {posargs}
|
|
100 |
+deps =
|
|
101 |
+ -rrequirements/requirements.txt
|
|
102 |
+ -rrequirements/dev-requirements.txt
|
|
103 |
+ -rrequirements/plugin-requirements.txt
|
|
104 |
+whitelist_externals = *
|