Skip to content

Commit

Permalink
Add Travis CI configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
blag committed Apr 3, 2017
1 parent a26341c commit 9084cfb
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 9084cfb

Please sign in to comment.