Skip to content

Commit fa2afb8

Browse files
markgoddardjovial
authored andcommitted
Add travis.yml
Includes pep8, py27 and docs tox environments. Change-Id: Id260e641d6b282806fb5b62781b4aa756bf1cb2c
1 parent c14e4b3 commit fa2afb8

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
language: python
3+
python: "2.7"
4+
5+
# Run jobs in VMs - sudo is required by ansible tests.
6+
sudo: required
7+
8+
# Install ansible
9+
addons:
10+
apt:
11+
packages:
12+
- gcc
13+
- python-apt
14+
- python-virtualenv
15+
- realpath
16+
17+
# Create a build matrix for the different test jobs.
18+
env:
19+
matrix:
20+
# Run python style checks.
21+
- TOX_ENV=pep8
22+
# Build documentation.
23+
- TOX_ENV=docs
24+
# Run python2.7 unit tests.
25+
- TOX_ENV=py27
26+
27+
install:
28+
# Install tox in a virtualenv to ensure we have an up to date version.
29+
- pip install -U pip
30+
- pip install tox
31+
32+
script:
33+
# Run the tox environment.
34+
- tox -e ${TOX_ENV}

0 commit comments

Comments
 (0)