forked from organizerconnect/django-bouncy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (59 loc) · 2.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: python
# Test against 2.7, 3.3 and 3.4
# We don't support 3.2 because the pem library doesn't support it
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
# command to define we should test against the latest version of all supported
# versions of django (1.11.x, 2.0.x, 2.1.x)
env:
- DJANGO_INSTALL=django\<1.11.99
- DJANGO_INSTALL=django\<2.0.99
- DJANGO_INSTALL=django\<2.1.99
- DJANGO_INSTALL=git+https://github.com/django/django.git\#egg=django
# command to install dependencies (mock & nose are already installed)
install:
- pip install $DJANGO_INSTALL
- python setup.py install
- pip install django-nose coverage mock
- pip install --upgrade setuptools
# command to run tests
script: python manage.py test --settings 'test_settings'
matrix:
fast_finish: true
allow_failures:
# pypy testing support is experimental
- python: "pypy"
# Tests against the master branch may break
- env: DJANGO_INSTALL=git+https://github.com/django/django.git\#egg=django
exclude:
# Django 2.0 onward doesn't support Python 2
- python: "2.7"
env: DJANGO_INSTALL=django\<2.0.99
# Django 2.0 onward doesn't support Python 2
- python: "2.7"
env: DJANGO_INSTALL=django\<2.1.99
# Django 2.1 onward doesn't support Python 3.4
- python: "3.4"
env: DJANGO_INSTALL=django\<2.1.99
# Django latest onward doesn't support Python 3.4
- python: "3.4"
env: DJANGO_INSTALL=git+https://github.com/django/django.git\#egg=django
# Django latest onward doesn't support Python 2
- python: "2.7"
env: DJANGO_INSTALL=git+https://github.com/django/django.git\#egg=django
# turn off email notifications
notifications:
email: false
deploy:
# Allow travis-ci to deploy new tags to PyPI
provider: pypi
user: ofa
password:
secure: mynPDpo4PHD8VjYJ03Yui2Xr2ICxP56DEOfE4IOr8RRorqJH7BtrYrX4TkqYLb81IR9Mgnzbk9wslq7ShGfYhXgSFWujDPyCsliPG1v826FXEMe3U7yT5B+Vrt7xA6FkImCuZIROmrGL9KSbobFTsBnTL6/LxMZ6pTYCJiXyf9E=
on:
tags: true
repo: ofa/django-bouncy