Add Travis configuration for GitHub
Change-Id: Ic4809bdd4fcb2e9de5d3281f659897a90cf8c2b7
This commit is contained in:
parent
43ea65cb77
commit
7b3a743244
|
@ -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
|
5
tox.ini
5
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue