Files
deb-python-dcos/tox.ini
José Armando García Sancio 838da66e2f dcos-97 Implements installing a subcommand
There is quite a bit going on in this commit. Here is a high level
description of all of the changes:

* Improved the README to include information for running the
  integrations tests now that we have subcommand management support.
* Change the clean script to also delete the build directory.
* Removed requirement on the DCOS_PATH environment variable. We now
  assume the DCOS CLI installation directory based on the location of
  the dcos cli binary
* Adds support for installing subcommand from python wheels. The
  packages are install under the 'subcommands' directory.
* Extended the `dcos help` to look into the 'subcommands'
  directory for the excutables that extend the cli.
* Fix the root `dcos` executable to not use the DCOS_PATH environment
  variable to discover subcommand. It now discovers subcommand based
  on the location of the root (`dcos`) executable.
* Adds `dcos subcommand` for managing the installation, listing and
  the removal of subcommands.
* Adds dependencies on pkginfo and virtualenv. We need pkginfo to query
  information about the package. We need virtualenv to create
  virtual environment for each subcommand installed.
2015-03-11 17:05:41 -07:00

33 lines
582 B
INI

[tox]
envlist = py{27,34}-{unit,integration}, syntax
[testenv]
deps =
pytest
pytest-cov
[testenv:syntax]
deps =
flake8
isort
commands =
flake8 --verbose dcos tests integrations
isort --recursive --check-only --diff --verbose dcos tests integrations
[testenv:py27-unit]
commands =
py.test -vv --cov {envsitepackagesdir}/dcos tests
[testenv:py27-integration]
commands =
py.test -vv integrations{posargs}
[testenv:py34-unit]
commands =
py.test -vv --cov {envsitepackagesdir}/dcos tests
[testenv:py34-integration]
commands =
py.test -vv integrations{posargs}