Add Travis configuration for GitHub

Change-Id: Ic4809bdd4fcb2e9de5d3281f659897a90cf8c2b7
This commit is contained in:
Julien Danjou 2017-04-24 10:31:01 +02:00
parent 43ea65cb77
commit 7b3a743244
2 changed files with 21 additions and 1 deletions

17
.travis.yml Normal file
View File

@ -0,0 +1,17 @@
language: python
dist: xenial
sudo: required
cache:
- pip
python:
- 2.7
- 3.5
- 3.6
before_install:
# Always redownload tarball
- find ~/.cache/pip -name '*.dev*' -delete
- sudo apt-get -qq update
install:
# The install requirements in travis virtualenv that will be cached
- pip install tox-travis .[test]
script: tox

View File

@ -1,6 +1,6 @@
[tox]
minversion = 1.6
envlist = py35,py27,pypy,pep8
envlist = py35,py36,py27,pypy,pep8,docs
skipsdist = True
[testenv]
@ -48,3 +48,6 @@ commands = pifpaf --debug run gnocchi -- oslo_debug_helper {posargs}
show-source = True
ignore =
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[travis]
python = 3.6: py36, pep8, docs