Use a build matrix for TravisCI
This more cleanly separates the different test jobs and their pass/fail status.
This commit is contained in:
parent
7b4135095e
commit
00e03f64df
24
.travis.yml
24
.travis.yml
@ -2,7 +2,7 @@
|
|||||||
language: python
|
language: python
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
|
|
||||||
# Use the new container infrastructure
|
# Run jobs in containers.
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
# Install ansible
|
# Install ansible
|
||||||
@ -11,18 +11,24 @@ addons:
|
|||||||
packages:
|
packages:
|
||||||
- gcc
|
- gcc
|
||||||
- python-virtualenv
|
- python-virtualenv
|
||||||
|
- realpath
|
||||||
|
|
||||||
|
# Create a build matrix for the different test jobs.
|
||||||
|
env:
|
||||||
|
matrix:
|
||||||
|
# Run python style checks.
|
||||||
|
- TOX_ENV=pep8
|
||||||
|
# Build documentation.
|
||||||
|
- TOX_ENV=docs
|
||||||
|
# Run python2.7 unit tests.
|
||||||
|
- TOX_ENV=py27
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
# Install a virtualenv for tox.
|
||||||
- virtualenv venv
|
- virtualenv venv
|
||||||
- venv/bin/pip install -U pip
|
- venv/bin/pip install -U pip
|
||||||
- venv/bin/pip install tox
|
- venv/bin/pip install tox
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Run python style checks.
|
# Run the tox environment.
|
||||||
- venv/bin/tox -e pep8
|
- venv/bin/tox -e ${TOX_ENV}
|
||||||
|
|
||||||
# Build documentation.
|
|
||||||
- venv/bin/tox -e docs
|
|
||||||
|
|
||||||
# Run python2.7 unit tests.
|
|
||||||
- venv/bin/tox -e py27
|
|
||||||
|
Loading…
Reference in New Issue
Block a user