Add Travis CI

This commit is contained in:
Luke Murphy 2019-08-04 00:57:53 +02:00
parent 9d240d0c7e
commit 021cdffbd1
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 30 additions and 0 deletions

26
.travis.yml Normal file
View File

@ -0,0 +1,26 @@
language: python
matrix:
include:
- python: 3.6
env: TOXENV=py36-test
- python: 3.7
env: TOXENV=py37-test
- python: 3.7
env: TOXENV=lint
- python: 3.7
env: TOXENV=sort
- python: 3.7
env: TOXENV=format
- python: 3.7
env: TOXENV=type
- python: 3.7
env: TOXENV=docs
- python: 3.7
env: TOXENV=metadata-release
install:
- pip install tox==3.13.2
script:
- tox -v

View File

@ -12,6 +12,10 @@ flat-tree
:target: https://badge.fury.io/py/flat_tree
:alt: PyPI Package
.. image:: https://travis-ci.com/datpy/flat-tree.svg?branch=master
:target: https://travis-ci.com/datpy/flat-tree
:alt: Travis CI result
.. image:: https://readthedocs.org/projects/flat-tree/badge/?version=latest
:target: https://flat-tree.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status