Skip to content

Commit aea6b89

Browse files
committed
Add Travis CI configuration file
1 parent 557e5e6 commit aea6b89

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
*.pyc
22
*.pyo
33
*.egg-info
4+
.coverage
5+
tests/mail.txt
6+
7+
gpg_keyring/
8+
htmlcov/
9+
tests/fixtures/

.travis.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
sudo: false
2+
language: python
3+
env:
4+
- DJANGO_VERSION="Django>=1.8,<1.9"
5+
- DJANGO_VERSION="Django>=1.9,<1.10"
6+
- DJANGO_VERSION="Django>=1.10,<1.11"
7+
- DJANGO_VERSION="Django>=1.11,<2.0"
8+
- DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
9+
python:
10+
# None of the currently supported Django versions support Python 2.6
11+
# - "2.6"
12+
- "2.7"
13+
- "3.4"
14+
- "3.5"
15+
- "3.6"
16+
# matrix:
17+
# exclude:
18+
# # Django 2.0 won't support Python 2.x anymore
19+
# - python: "2.7"
20+
# env: DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
21+
before_script:
22+
- pip install coverage coveralls flake8 python-gnupg
23+
- pip install -q "$DJANGO_VERSION"
24+
# Make sure we have gpg installed; this also logs the version of GPG
25+
- gpg --version
26+
script:
27+
- flake8 email_extras --exclude=email_extras/migrations
28+
- coverage run --include=email_extras/*.py manage.py migrate
29+
- coverage run --include=email_extras/*.py --omit=email_extras/migrations/*.py manage.py test tests
30+
after_script:
31+
- coverage combine
32+
- coveralls
33+
matrix:
34+
allow_failures:
35+
- env: DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'

0 commit comments

Comments
 (0)