Skip to content

Commit 6a9790b

Browse files
committed
Add travis.yml
Adds pep8, py27, functional and docs tox environments. Change-Id: Iede0a01d5c180b635278e1c27095eef4eac63672
1 parent ceb8279 commit 6a9790b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
# Run functional tests.
27+
- TOX_ENV=functional
28+
29+
install:
30+
# Install tox in a virtualenv to ensure we have an up to date version.
31+
- pip install -U pip
32+
- pip install tox
33+
34+
script:
35+
# Run the tox environment.
36+
- tox -e ${TOX_ENV}

0 commit comments

Comments
 (0)