diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2018-12-28 23:40:05 +0000 |
---|---|---|
committer | Chandan Singh <csingh43@bloomberg.net> | 2019-01-02 19:41:21 +0000 |
commit | 6b0cb5f3566bd9f73baa90f809ac22b699285bbf (patch) | |
tree | 9c6bfb3e4c92c5367feb42741df9416fc60bd41c | |
parent | 1cbd9a7381c32467b500b316cdac3c647a59e0dc (diff) | |
download | buildstream-6b0cb5f3566bd9f73baa90f809ac22b699285bbf.tar.gz |
Add tox.ini to enable running tests using tox
Add `tox.ini` file that will enable us to use
[tox](https://tox.readthedocs.io/) as a frontend for running tests.
Since we share the config via `setup.cfg` and requirements via
requirements files, commands like `python3 setup.py test` will continue
to work.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | MANIFEST.in | 1 | ||||
-rw-r--r-- | tox.ini | 13 |
3 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 8c72c4f3f..3fd1addbc 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ tmp .cache .pytest_cache/ *.bst/ +.tox # Pycache, in case buildstream is ran directly from within the source # tree diff --git a/MANIFEST.in b/MANIFEST.in index 96fce72b3..0344cf2ff 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -24,6 +24,7 @@ recursive-include doc/sessions *.run # Tests recursive-include tests * include conftest.py +include tox.ini include .coveragerc include .pylintrc diff --git a/tox.ini b/tox.ini new file mode 100644 index 000000000..f2c635057 --- /dev/null +++ b/tox.ini @@ -0,0 +1,13 @@ +[tox] +envlist = py35,py36,py37 +skip_missing_interpreters = true + +[testenv] +commands = pytest {posargs} +deps = + -rrequirements.txt + -rdev-requirements.txt + -rplugin-requirements.txt +passenv = + GI_TYPELIB_PATH + INTEGRATION_CACHE |