forked from tildaslash/RatticWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (32 loc) · 1.07 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"
cache:
directories:
- $HOME/.pip-cache/
install:
- sudo apt-get update
- sudo apt-get install -qq slapd ldap-utils
- pip install -r requirements-mysql.txt -r requirements-dev.txt --use-mirrors --download-cache $HOME/.pip-cache/
- pip install -r requirements-pgsql.txt --use-mirrors --download-cache $HOME/.pip-cache/
before_script:
- pushd docs/ldap; DEBUG=true ./startldap.sh; popd
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- ./runtests.sh --lint-only
- mysql -e 'create database IF NOT EXISTS rattic;'
- psql -c 'create database rattic;' -U postgres
script:
- echo -e '[ratticweb]\nsecretkey = blah!' > conf/local.cfg
- ./runtests.sh --tests-only
- cp docs/travis/ldap.cfg conf/local.cfg
- ./runtests.sh --tests-only
- cp docs/travis/mysql.cfg conf/local.cfg
- python manage.py syncdb --noinput
- python manage.py migrate
- ./runtests.sh --tests-only
- cp docs/travis/pgsql.cfg conf/local.cfg
- python manage.py syncdb --noinput
- python manage.py migrate
- ./runtests.sh --tests-only