Add additional tox environments to Travis
This commit is contained in:
parent
61e884e833
commit
1375df399a
22
.travis.yml
22
.travis.yml
@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
language: python
|
language: python
|
||||||
python: "2.7"
|
|
||||||
|
|
||||||
# Run jobs in VMs - sudo is required by ansible tests.
|
# Run jobs in VMs - sudo is required by ansible tests.
|
||||||
sudo: required
|
sudo: required
|
||||||
@ -15,12 +14,23 @@ addons:
|
|||||||
- realpath
|
- realpath
|
||||||
|
|
||||||
# Create a build matrix for the different test jobs.
|
# Create a build matrix for the different test jobs.
|
||||||
env:
|
matrix:
|
||||||
matrix:
|
include:
|
||||||
# Run python style checks.
|
# Run Python style checks.
|
||||||
- TOX_ENV=pep8
|
- python: 3.5
|
||||||
|
env: TOX_ENV=pep8
|
||||||
# Run Ansible linting.
|
# Run Ansible linting.
|
||||||
- TOX_ENV=alint
|
- python: 3.5
|
||||||
|
env: TOX_ENV=alint
|
||||||
|
# Run Python 3.5 tests.
|
||||||
|
- python: 3.5
|
||||||
|
env: TOX_ENV=py35
|
||||||
|
# Run Python 2.7 tests.
|
||||||
|
- python: 2.7
|
||||||
|
env: TOX_ENV=py27
|
||||||
|
# Run coverage checks.
|
||||||
|
- python: 3.5
|
||||||
|
env: TOX_ENV=cover
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Install tox in a virtualenv to ensure we have an up to date version.
|
# Install tox in a virtualenv to ensure we have an up to date version.
|
||||||
|
4
tox.ini
4
tox.ini
@ -22,7 +22,7 @@ deps =
|
|||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
stestr run {posargs}
|
stestr run --config {toxinidir}/.stestr.conf {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
@ -36,7 +36,7 @@ setenv =
|
|||||||
PYTHON=coverage run --source tenks,ansible/action_plugins --parallel-mode
|
PYTHON=coverage run --source tenks,ansible/action_plugins --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
stestr run {posargs}
|
stestr run --config {toxinidir}/.stestr.conf {posargs}
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage report
|
coverage report
|
||||||
coverage html -d cover
|
coverage html -d cover
|
||||||
|
Loading…
x
Reference in New Issue
Block a user