forked from django-cms/django-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
104 lines (88 loc) · 4.87 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
language: python
python:
- 3.4
- 3.3
- 2.7
- 2.6
sudo: false
env:
global:
- secure: NWiSBCHFB6LbTMget2qLIdqZlx0zeu3j+Y7Lsqb8kuYXyT2IUBGFVedcGWuGv/9Mzypb80EQWtVTokA3/3QIbesqr29uG95pMPHiYWLdnTO6UHcLMcNXiSzhBGdRDZ40iHSVv2dDHs4GNwGOH5+UCA0z3j7SWmChuFbNXh+Vsqw=
matrix:
- DJANGO=1.6 DATABASE_URL='sqlite://localhost/:memory:' SELENIUM=0
- DJANGO=1.6 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- DJANGO=1.6 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0
- DJANGO=1.6 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
- DJANGO=1.6 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='customuserapp.User'
- DJANGO=1.7 DATABASE_URL='sqlite://localhost/:memory:' SELENIUM=0
- DJANGO=1.7 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- DJANGO=1.7 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0
- DJANGO=1.7 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
- DJANGO=1.8 DATABASE_URL='sqlite://localhost/:memory:' SELENIUM=0
- DJANGO=1.8 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0
- DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
- DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='customuserapp.User'
before_script:
- pip freeze
- sh -c "if [ '$DATABASE_URL' = 'postgres://[email protected]/djangocms_test' ];
then psql -c 'DROP DATABASE IF EXISTS djangocms_test;' -U postgres; fi"
- sh -c "if [ '$DATABASE_URL' = 'postgres://[email protected]/djangocms_test' ];
then psql -c 'create database djangocms_test;' -U postgres; fi"
- sh -c "if [ '$DATABASE_URL' = 'mysql://[email protected]/djangocms_test' ]; then mysql
-e 'create database IF NOT EXISTS djangocms_test CHARACTER SET utf8 COLLATE utf8_general_ci;';
fi"
before_install:
- "export DISPLAY=:99.0"
# xvfb is started in this way to ensure the screen size is 1280x1024x8
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/cucumber_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x8"
install:
- pip install -r "test_requirements/django-$DJANGO.txt"
- if [ $DATABASE_URL == 'postgres://[email protected]/djangocms_test' ]; then pip install psycopg2 ; fi
- if [ $DATABASE_URL == 'mysql://[email protected]/djangocms_test' ]; then pip install mysqlclient ; fi
script: coverage run --rcfile=.coverage.rc manage.py test
after_success: coveralls --config_file=.coverage.rc
notifications:
irc:
- irc.freenode.org#django-cms
- irc.freenode.org#django-cms-sprint
webhooks:
- http://addons.us-iad-rs.aldryn.io/en/travis-endpoint/
matrix:
exclude:
- python: 2.6
env: DJANGO=1.7 DATABASE_URL='sqlite://localhost/:memory:' SELENIUM=0
- python: 2.6
env: DJANGO=1.7 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- python: 2.6
env: DJANGO=1.7 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0
- python: 2.6
env: DJANGO=1.7 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
- python: 2.6
env: DJANGO=1.8 DATABASE_URL='sqlite://localhost/:memory:' SELENIUM=0
- python: 2.6
env: DJANGO=1.8 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- python: 2.6
env: DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=0
- python: 2.6
env: DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='emailuserapp.EmailUser'
- python: 2.6
env: DJANGO=1.8 DATABASE_URL='postgres://[email protected]/djangocms_test' SELENIUM=1 AUTH_USER_MODEL='customuserapp.User'
allow_failures:
- python: 2.7
env: DJANGO=1.7 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- python: 2.7
env: DJANGO=1.8 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- python: 3.3
env: DJANGO=1.6 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- python: 3.3
env: DJANGO=1.7 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- python: 3.3
env: DJANGO=1.8 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- python: 3.4
env: DJANGO=1.6 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- python: 3.4
env: DJANGO=1.7 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
- python: 3.4
env: DJANGO=1.8 DATABASE_URL='mysql://[email protected]/djangocms_test' SELENIUM=0
fast_finish: true