forked from django-cms/django-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (42 loc) · 1.72 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
language: python
python:
- 2.6
- 2.7
- 3.3
env:
- DJANGO=1.4 DB='sqlite://localhost/:memory:'
- DJANGO=1.4 DB='mysql://[email protected]/djangocms_test'
- DJANGO=1.4 DB='postgres://[email protected]/djangocms_test'
- DJANGO=1.5 DB='sqlite://localhost/:memory:'
- DJANGO=1.5 DB='mysql://[email protected]/djangocms_test'
- DJANGO=1.5 DB='postgres://[email protected]/djangocms_test'
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 "test_requirements/django-$DJANGO.txt" --use-mirrors
- if [ $DB == 'mysql://[email protected]/djangocms_test' ]; then pip install -q mysql-python --use-mirrors; fi
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"
matrix:
exclude:
- python: 3.3
env: DJANGO=1.4 DB='sqlite://localhost/:memory:'
- python: 3.3
env: DJANGO=1.4 DB='mysql://[email protected]/djangocms_test'
- python: 3.3
env: DJANGO=1.4 DB='postgres://[email protected]/djangocms_test'
- python: 3.3
env: DJANGO=1.5 DB='mysql://[email protected]/djangocms_test'