kayobe/.travis.yml
Mark Goddard 00e03f64df Use a build matrix for TravisCI
This more cleanly separates the different test jobs and their pass/fail
status.
2017-11-17 09:09:11 +00:00

35 lines
587 B
YAML

---
language: python
python: "2.7"
# Run jobs in containers.
sudo: false
# Install ansible
addons:
apt:
packages:
- gcc
- 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 a virtualenv for tox.
- virtualenv venv
- venv/bin/pip install -U pip
- venv/bin/pip install tox
script:
# Run the tox environment.
- venv/bin/tox -e ${TOX_ENV}