From f543d6789904fcedb878708ba10504e3744b1571 Mon Sep 17 00:00:00 2001 From: androiddrew Date: Tue, 30 Jan 2018 11:54:34 -0500 Subject: [PATCH] Added flake8 CI testing and build status badge to README --- .travis.yml | 3 +++ README.md | 3 +++ tox.ini | 15 ++++++++++++--- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ac49539..ec94cf6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,9 @@ matrix: - os: linux python: 3.6 env: TOX_ENV=py36 + - os: linux + python: 3.6 + env: TOX_ENV=flake8 install: - pip install tox coverage codecov diff --git a/README.md b/README.md index 65c84b5..3d25292 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # apistar-mail +[![Build Status](https://travis-ci.org/androiddrew/apistar-mail.svg?branch=master)](https://travis-ci.org/androiddrew/apistar-mail) + + Provides a simple interface to set up SMTP with your [APIStar](https://github.com/encode/apistar) application and send messages from your view functions. Please note this work derives largely from the [Flask-Mail](https://github.com/mattupstate/flask-mail) extension by 'Dan Jacob' and contributors, but has been modified extensively to remove Python 2 support and be used as an APIStar component. diff --git a/tox.ini b/tox.ini index 87d37fc..0ff38b9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,14 @@ [tox] -envlist = py35,py36 +envlist = py35,py36,flake8 + [testenv] -deps=pytest -commands=pytest +deps= + pytest + pytest-cov +commands= + pytest --cov + +[testenv:flake8] +deps = + flake8 +commands = flake8 apistar_mail setup.py \ No newline at end of file