Add Travis CI config file
This commit is contained in:
parent
5707fd3309
commit
106832eaae
32
.travis.yml
Normal file
32
.travis.yml
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
# Run jobs in VMs - sudo is required by ansible tests.
|
||||
sudo: required
|
||||
|
||||
# Install ansible
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- gcc
|
||||
- python-apt
|
||||
- python-virtualenv
|
||||
- realpath
|
||||
|
||||
# Create a build matrix for the different test jobs.
|
||||
env:
|
||||
matrix:
|
||||
# Run python style checks.
|
||||
- TOX_ENV=pep8
|
||||
# Run Ansible linting.
|
||||
- TOX_ENV=alint
|
||||
|
||||
install:
|
||||
# Install tox in a virtualenv to ensure we have an up to date version.
|
||||
- pip install -U pip
|
||||
- pip install tox
|
||||
|
||||
script:
|
||||
# Run the tox environment.
|
||||
- tox -e ${TOX_ENV}
|
Loading…
Reference in New Issue
Block a user