This repository has been archived by the owner on Dec 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
travis.ini
42 lines (37 loc) · 1.49 KB
/
travis.ini
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
[app:autonomie]
use = egg:autonomie
pyramid.default_locale_name = fr
pyramid.includes = pyramid_tm
pyramid_mailer.testing
pyramid_services
pyramid_layout
pyramid_mako
pyramid_chameleon
pyramid_celery
js.deform
deform_extensions
autonomie_celery
#### CONFIGURE THOSE LINES TO ALLOW THE TESTS TO SETUP A MYSQL DATABASE ####
sqlalchemy.url = mysql://autonomie:autonomie@localhost/autonomie?charset=utf8
sqlalchemy.echo=True
sqlalchemy.encoding=UTF8
testdb.connect=echo 'quit' | mysql -uroot
testdb.adduser=echo "CREATE USER autonomie" | mysql -uroot
testdb.adddb=echo "CREATE DATABASE IF NOT EXISTS autonomie; GRANT ALL PRIVILEGES on autonomie.* to autonomie@localhost IDENTIFIED BY 'autonomie';FLUSH PRIVILEGES;" | mysql -uroot
testdb.drop=echo "DROP DATABASE IF EXISTS autonomie"|mysql -uroot
session.longtimeout=3600
cache.regions = default_term, second, short_term, long_term
cache.type = memory
cache.second.expire = 1
cache.short_term.expire = 1
cache.default_term.expire = 1
cache.long_term.expire = 1
mako.directories = autonomie:templates
mako.imports = from markupsafe import escape_silent
mako.default_filters = escape_silent
autonomie.ftpdir=%(here)s/autonomie/tests/datas/
pyramid_deform.tempdir=%(here)s/autonomie/tests/datas/
autonomie.depot_path=%(here)s/autonomie/tests/datas/filedepot/
[pipeline:main]
pipeline =
autonomie