Add Travis CI config
Currently we run the following: * Python and documentation style checks * Documentation build * Python unit tests
This commit is contained in:
parent
ee09ae8f4a
commit
cc2906e2e9
28
.travis.yml
Normal file
28
.travis.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
language: python
|
||||||
|
python: "2.7"
|
||||||
|
|
||||||
|
# Use the new container infrastructure
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
# Install ansible
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- gcc
|
||||||
|
- python-virtualenv
|
||||||
|
|
||||||
|
install:
|
||||||
|
- virtualenv venv
|
||||||
|
- venv/bin/pip install -U pip
|
||||||
|
- venv/bin/pip install tox
|
||||||
|
|
||||||
|
script:
|
||||||
|
# Run python style checks.
|
||||||
|
- venv/bin/tox -e pep8
|
||||||
|
|
||||||
|
# Build documentation.
|
||||||
|
- venv/bin/tox -e docs
|
||||||
|
|
||||||
|
# Run python2.7 unit tests.
|
||||||
|
- venv/bin/tox -e py27
|
2
tox.ini
2
tox.ini
@ -15,7 +15,7 @@ commands = unit2 discover {posargs}
|
|||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
flake8 {posargs}
|
flake8 {posargs} kayobe
|
||||||
# Check the *.rst files
|
# Check the *.rst files
|
||||||
# We use a thin wrapper around doc8 currently, which has support for sphinx
|
# We use a thin wrapper around doc8 currently, which has support for sphinx
|
||||||
# directives. We install sphinx 1.5.x because versions prior to this
|
# directives. We install sphinx 1.5.x because versions prior to this
|
||||||
|
Loading…
Reference in New Issue
Block a user