forked from django-cms/django-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (33 loc) · 1.61 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
language: python
python:
- "2.6"
- "2.7"
env:
- DJANGO=test_requirements/django-1.4.txt DB='sqlite://localhost/:memory:'
- DJANGO=test_requirements/django-1.4.txt DB='mysql://[email protected]/djangocms_test'
- DJANGO=test_requirements/django-1.4.txt DB='postgres://[email protected]/djangocms_test'
- DJANGO=test_requirements/django-1.5.txt DB='sqlite://localhost/:memory:'
- DJANGO=test_requirements/django-1.5.txt DB='mysql://[email protected]/djangocms_test'
- DJANGO=test_requirements/django-1.5.txt DB='postgres://[email protected]/djangocms_test'
- DJANGO=test_requirements/selenium-1.4.txt DB='sqlite://localhost/:memory:'
- DJANGO=test_requirements/selenium-1.5.txt DB='sqlite://localhost/:memory:'
before_script:
- sh -c "if [ '$DB' = 'postgres://[email protected]/djangocms_test' ]; then psql -c 'DROP DATABASE IF EXISTS djangocms_test;' -U postgres; fi"
- sh -c "if [ '$DB' = 'postgres://[email protected]/djangocms_test' ]; then psql -c 'create database djangocms_test;' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql://[email protected]/djangocms_test' ]; then mysql -e 'create database IF NOT EXISTS djangocms_test CHARACTER SET utf8 COLLATE utf8_general_ci;'; fi"
install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- pip install -q -r $DJANGO --use-mirrors
- pip install -q mysql-python --use-mirrors
script:
python runtests.py --db $DB
notifications:
email:
recipients:
on_success: never
on_failure: always
irc:
- "irc.freenode.org#django-cms"
- "irc.freenode.org#django-cms-sprint"