forked from makinacorpus/django-safedelete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
82 lines (70 loc) · 2.12 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
language: python
sudo: false
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
env:
- DJANGO_VERSION="stable/1.4.x"
- DJANGO_VERSION="stable/1.5.x"
- DJANGO_VERSION="stable/1.6.x"
- DJANGO_VERSION="stable/1.7.x"
- DJANGO_VERSION="stable/1.8.x"
- DJANGO_VERSION="stable/1.9.x"
install:
# This is a dependency of our Django test script
- pip install argparse
# Install the dependencies of the app itself
# - pip install -r requirements.txt
# Clone Django from the GitHub repository
- git clone -b $DJANGO_VERSION --single-branch https://github.com/django/django
- pip install -e django/
- pip install 'coverage>=3,<4'
- pip install pep8
- pip install pyflakes
before_script:
- "pep8 --ignore=E501 safedelete"
- pyflakes safedelete
script:
- coverage run quicktest.py safedelete
after_success:
- pip install coveralls
- coveralls
# We need to exclude old versions of Django for tests with python 3.
# We need to exclude old versions of Python for tests with Django >= 1.7.
# 1.9: Dropped support for 3.2-3.3: https://docs.djangoproject.com/en/dev/releases/1.9/#python-compatibility
matrix:
exclude:
- python: 3.2
env: DJANGO_VERSION="stable/1.4.x"
- python: 3.3
env: DJANGO_VERSION="stable/1.4.x"
- python: 3.4
env: DJANGO_VERSION="stable/1.4.x"
- python: 3.4
env: DJANGO_VERSION="stable/1.5.x"
- python: 3.4
env: DJANGO_VERSION="stable/1.6.x"
- python: 2.6
env: DJANGO_VERSION="stable/1.7.x"
- python: 2.6
env: DJANGO_VERSION="stable/1.8.x"
- python: 2.6
env: DJANGO_VERSION="stable/1.9.x"
- python: 3.2
env: DJANGO_VERSION="stable/1.9.x"
- python: 3.3
env: DJANGO_VERSION="stable/1.9.x"
- python: 3.5
env: DJANGO_VERSION="stable/1.4.x"
- python: 3.5
env: DJANGO_VERSION="stable/1.5.x"
- python: 3.5
env: DJANGO_VERSION="stable/1.6.x"
- python: 3.5
env: DJANGO_VERSION="stable/1.7.x"
- python: 3.5
env: DJANGO_VERSION="stable/1.8.x"