From aea6b895fa879925b92912277a21724267fd9d13 Mon Sep 17 00:00:00 2001 From: Drew Hubl Date: Thu, 30 Mar 2017 04:11:01 -0600 Subject: [PATCH] Add Travis CI configuration file --- .gitignore | 6 ++++++ .travis.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index 0086053..1c8eb8c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,9 @@ *.pyc *.pyo *.egg-info +.coverage +tests/mail.txt + +gpg_keyring/ +htmlcov/ +tests/fixtures/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..41f10d8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +sudo: false +language: python +env: + - DJANGO_VERSION="Django>=1.8,<1.9" + - DJANGO_VERSION="Django>=1.9,<1.10" + - DJANGO_VERSION="Django>=1.10,<1.11" + - DJANGO_VERSION="Django>=1.11,<2.0" + - DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz' +python: + # None of the currently supported Django versions support Python 2.6 + # - "2.6" + - "2.7" + - "3.4" + - "3.5" + - "3.6" +# matrix: +# exclude: +# # Django 2.0 won't support Python 2.x anymore +# - python: "2.7" +# env: DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz' +before_script: + - pip install coverage coveralls flake8 python-gnupg + - pip install -q "$DJANGO_VERSION" + # Make sure we have gpg installed; this also logs the version of GPG + - gpg --version +script: + - flake8 email_extras --exclude=email_extras/migrations + - coverage run --include=email_extras/*.py manage.py migrate + - coverage run --include=email_extras/*.py --omit=email_extras/migrations/*.py manage.py test tests +after_script: + - coverage combine + - coveralls +matrix: + allow_failures: + - env: DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'