From 021cdffbd1408ca69bc504931e2d0eed8efe8866 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 4 Aug 2019 00:57:53 +0200 Subject: [PATCH] Add Travis CI --- .travis.yml | 26 ++++++++++++++++++++++++++ README.rst | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f558483 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/README.rst b/README.rst index ad5fe97..c4a2a44 100644 --- a/README.rst +++ b/README.rst @@ -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