-
Notifications
You must be signed in to change notification settings - Fork 92
/
.travis.yml
47 lines (47 loc) · 1.88 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
# Send this build to the travis.ci container-based infrastructure
# which typically has more capacity than the open-source Linux pool
sudo: false
# Tell Travis you want a Python environment to test in
language: python
# List the versions of Python you'd like to test against
python:
- "2.7"
- "3.3"
- "3.4"
# List the versions of Django you'd like to test against
env:
- DJANGO_VERSION=1.6.11 REST_FRAMEWORK_VERSION=2.3.14
- DJANGO_VERSION=1.6.11 REST_FRAMEWORK_VERSION=2.4.4
- DJANGO_VERSION=1.6.11 REST_FRAMEWORK_VERSION=3.0.5
- DJANGO_VERSION=1.6.11 REST_FRAMEWORK_VERSION=3.1.3
- DJANGO_VERSION=1.6.11 REST_FRAMEWORK_VERSION=3.2.2
- DJANGO_VERSION=1.7.9 REST_FRAMEWORK_VERSION=2.3.14
- DJANGO_VERSION=1.7.9 REST_FRAMEWORK_VERSION=2.4.4
- DJANGO_VERSION=1.7.9 REST_FRAMEWORK_VERSION=3.0.5
- DJANGO_VERSION=1.7.9 REST_FRAMEWORK_VERSION=3.1.3
- DJANGO_VERSION=1.7.9 REST_FRAMEWORK_VERSION=3.2.2
- DJANGO_VERSION=1.8.4 REST_FRAMEWORK_VERSION=2.3.14
- DJANGO_VERSION=1.8.4 REST_FRAMEWORK_VERSION=2.4.4
- DJANGO_VERSION=1.8.4 REST_FRAMEWORK_VERSION=3.0.5
- DJANGO_VERSION=1.8.4 REST_FRAMEWORK_VERSION=3.1.3
- DJANGO_VERSION=1.8.4 REST_FRAMEWORK_VERSION=3.2.2
before_install:
- export DJANGO_SETTINGS_MODULE=tests.test_settings
- export PIP_USE_MIRRORS=true
# Tell it the things it will need to install when it boots
install:
# Install the dependencies the app itself has
# which in this case I choose to keep in a requirements file
- pip install -e .
# Install whatever version of Django that's listed above
# Travis is currently working on
- pip install -q Django==$DJANGO_VERSION
- pip install djangorestframework==$REST_FRAMEWORK_VERSION
- pip install south
- pip install coveralls
- pip install flake8
# Tell Travis how to run the test script itself
script:
- flake8 versatileimagefield/
- coverage run --source=versatileimagefield runtests.py
after_success: coveralls