tox.ini 961 B

1234567891011121314151617181920212223242526272829303132
  1. [tox]
  2. minversion=2.3.1
  3. envlist =
  4. py{27,35}-{flake8,pylint,unit}
  5. py27-{yamllint,ansible_syntax,generate_validation}
  6. integration
  7. skipsdist=True
  8. skip_missing_interpreters=True
  9. [testenv]
  10. skip_install=True
  11. deps =
  12. -rrequirements.txt
  13. -rtest-requirements.txt
  14. py35-flake8: flake8-bugbear==17.3.0
  15. whitelist_externals = env
  16. commands =
  17. unit: pip install -e utils
  18. unit: pytest {posargs}
  19. flake8: flake8 {posargs}
  20. pylint: python setup.py lint
  21. yamllint: python setup.py yamllint
  22. generate_validation: python setup.py generate_validation
  23. # TODO(rhcarvalho): check syntax of other important entrypoint playbooks
  24. ansible_syntax: python setup.py ansible_syntax
  25. # Unset GOPATH because tests use relative imports. This should be removed if
  26. # we require openshift-ansible to live in a Go work space and use absolute
  27. # imports in tests (desirable).
  28. integration: env -u GOPATH go test -v ./test/integration/...