-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
32 lines (29 loc) · 911 Bytes
/
.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
language: python
python:
- 2.6
- 2.7
env:
- DATABASE="mysql"
- DATABASE="sqlite"
- DATABASE="postgresql"
install:
- cp buildout.d/templates/buildout.cfg.in buildout.cfg
# - sed -i 's/bacula.db/almir/tests/fixtures/sqlite3.db/' buildout.cfg
# - director_password=$(sudo grep 'Password' /etc/bacula/bconsole.conf | sed 's/.*Password\s*=\s*"\(.\+\)"/\1/')
# - sed -i "s@director_password = @director_password = $director_password@" buildout.cfg
- python bootstrap.py
- bin/buildout
before_script:
- "sh -e /etc/init.d/xvfb start"
# setup mysql
- mysql -e 'create database bacula;'
- mysql bacula < almir/tests/fixtures/mysql.sql
# setup postgres
- psql -U postgres -c 'create database bacula;'
- pg_restore -O -U postgres -d bacula almir/tests/fixtures/postgresql.sql
script:
- bin/nosetests -v -s
- ./.travis_qunit_tests.sh
notifications:
irc:
- "irc.freenode.org#almir"