forked from mysociety/sayit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (35 loc) · 997 Bytes
/
.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
notifications:
email: false
irc:
channels:
- "irc.mysociety.org#sayit"
use_notice: true
language: python
python:
- "2.7"
- "3.3"
services:
- elasticsearch
env:
- MODULES="Django>=1.4.2,<1.5 django-tastypie==0.9.16"
- MODULES="Django>=1.5,<1.6 django-tastypie"
- MODULES="Django>=1.6,<1.7 django-tastypie"
- MODULES="Django>=1.7,<1.8 django-tastypie"
# - MODULES="git+https://github.com/django/django.git@master#egg=django"
# Django 1.4 did not support Python 3.
matrix:
exclude:
- python: "3.3"
env: MODULES="Django>=1.4.2,<1.5 django-tastypie==0.9.16"
install:
- sudo apt-get update -qq
- sudo apt-get install -qq ffmpeg libavcodec-extra-53 iceweasel xvfb
- pip install $MODULES
- CFLAGS="-O0" pip install -e .[test]
before_script:
- psql -c 'create database "sayit-example-project";' -U postgres
- ./manage.py syncdb --noinput
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- SELENIUM_TESTS=1 ./manage.py test