forked from Karaage-Cluster/karaage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (52 loc) · 2.83 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
language: python
sudo: false
python:
- 2.7
- 3.4
- 3.5
addons:
apt:
packages:
- slapd
- ldap-utils
env:
- DJANGO_VERSION=1.8.11 DATABASE_URL=postgres://postgres@/spud
- DJANGO_VERSION=1.9.4 DATABASE_URL=postgres://postgres@/spud
- DJANGO_VERSION=master DATABASE_URL=postgres://postgres@/spud
- DJANGO_VERSION=1.8.11 DATABASE_URL=mysql://root:@localhost/spud
- DJANGO_VERSION=1.9.4 DATABASE_URL=mysql://root:@localhost/spud
- DJANGO_VERSION=master DATABASE_URL=mysql://root:@localhost/spud
- DJANGO_VERSION=1.8.11 DATABASE_URL=sqlite://
- DJANGO_VERSION=1.9.4 DATABASE_URL=sqlite://
- DJANGO_VERSION=master DATABASE_URL=sqlite://
install:
# Install django master or version
- bash -c "if [[ \"$DJANGO_VERSION\" == 'master' ]]; then pip install 'https://github.com/django/django/archive/master.tar.gz'; else pip install Django==$DJANGO_VERSION; fi; "
# Install database drivers
- bash -c "if [[ $DATABASE_URL = postgres* ]]; then pip install psycopg2==2.6.1; fi; "
- bash -c "if [[ $DATABASE_URL = mysql* ]]; then pip install mysqlclient==1.3.7; fi; "
# Install other dependancies
- travis_retry pip install cssmin python-alogger django-xmlrpc
- travis_retry pip install django-simple-captcha django-ajax-selects
- travis_retry pip install django_jsonfield django-model-utils python-tldap
- travis_retry pip install django-pipeline django-tables2 django-filter
- travis_retry pip install django-environ six slimit django-extensions
- travis_retry pip install factory_boy mock django_celery
script:
- python ./setup.py --version
- ./manage.py collectstatic --settings="karaage.tests.settings" -v 2 --noinput
- python ./manage.py test --settings="karaage.tests.settings" -v 2 karaage.tests
- ./manage.py collectstatic --settings="karaage.plugins.kgapplications.tests.settings" -v 2 --noinput
- python ./manage.py test --settings="karaage.plugins.kgapplications.tests.settings" -v 2 karaage.plugins.kgapplications
- ./manage.py collectstatic --settings="karaage.plugins.kgsoftware.tests.settings" -v 2 --noinput
- python ./manage.py test --settings="karaage.plugins.kgsoftware.tests.settings" -v 2 karaage.plugins.kgsoftware.tests
- ./manage.py collectstatic --settings="karaage.plugins.kgsoftware.applications.tests.settings" -v 2 --noinput
- python ./manage.py test --settings="karaage.plugins.kgsoftware.applications.tests.settings" -v 2 karaage.plugins.kgsoftware
# - ./manage.py collectstatic --settings="karaage.plugins.kgusage.tests.settings" -v 2 --noinput
# - python ./manage.py test --settings="karaage.plugins.kgusage.tests.settings" -v 2 karaage.plugins.kgusage
matrix:
fast_finish: true
allow_failures:
- env: DJANGO_VERSION=master DATABASE_URL=postgres://postgres@/spud
- env: DJANGO_VERSION=master DATABASE_URL=mysql://root:@localhost/spud
- env: DJANGO_VERSION=master DATABASE_URL=sqlite://