forked from mysociety/sayit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (34 loc) · 1.15 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
notifications:
email: false
irc:
channels:
- "irc.mysociety.org#sayit"
use_notice: true
language: python
services:
- elasticsearch
env:
- SELENIUM_TESTS=1 MODULES="Django>=1.4,<1.5"
- SELENIUM_TESTS=1 MODULES="Django>=1.5,<1.6"
- SELENIUM_TESTS=1 MODULES="Django>=1.6,<1.7"
# - SELENIUM_TESTS=1 MODULES="git+https://github.com/django/django.git@master#egg=django"
install:
- sudo apt-get update -qq
- sudo apt-get install -qq ffmpeg libavcodec-extra-53 iceweasel xvfb yui-compressor
- gem install --conservative --no-ri --no-rdoc sass -v 3.2.14
- gem install --conservative --no-ri --no-rdoc compass -v 0.12.2
- gem install --conservative --no-ri --no-rdoc zurb-foundation -v 4.3.2
- pip install $MODULES
- pip install -r requirements.txt
- sed -r
-e "s,(SAYIT_DB_USER:) 'sayit',\\1 'postgres',"
-e "s,(DJANGO_SECRET_KEY:) '',\\1 'secret',"
conf/general.yml-example > conf/general.yml
before_script:
- psql -c 'create database sayit;' -U postgres
- ./manage.py syncdb --noinput --migrate
- ./manage.py collectstatic --noinput
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- ./manage.py test