gitlab-ci.ini 1.83 KB
Newer Older
1 2
[app:endi]
use = egg:endi
Feth Arezki's avatar
Feth Arezki committed
3 4

pyramid.default_locale_name = fr
G.Tjebbes's avatar
G.Tjebbes committed
5
pyramid.includes =  pyramid_tm
6
                    pyramid_mailer.testing
7
                    pyramid_services
G.Tjebbes's avatar
G.Tjebbes committed
8 9 10
                    pyramid_layout
                    pyramid_mako
                    pyramid_chameleon
G.Tjebbes's avatar
G.Tjebbes committed
11 12 13
                    pyramid_celery
                    js.deform
                    deform_extensions
14
                    endi_celery
15
                    endi_payment
16

Feth Arezki's avatar
Feth Arezki committed
17
#### CONFIGURE THOSE LINES TO ALLOW THE TESTS TO SETUP A MYSQL DATABASE ####
18
sqlalchemy.url = mysql://endi:endi@mariadb/endi?charset=utf8
Feth Arezki's avatar
Feth Arezki committed
19
sqlalchemy.echo=True
Feth Arezki's avatar
Feth Arezki committed
20
sqlalchemy.encoding=UTF8
21 22 23 24
testdb.connect=echo 'quit' | mysql -uroot --password="root" "endi" --host=mariadb
testdb.adduser=echo "CREATE USER endi" | mysql -uroot --password="root" "endi" --host=mariadb
testdb.adddb=echo "CREATE DATABASE IF NOT EXISTS endi; GRANT ALL PRIVILEGES on endi.* to endi@localhost IDENTIFIED BY 'endi';FLUSH PRIVILEGES;" | mysql -uroot --password="root" "endi" --host=mariadb
testdb.drop=echo "DROP DATABASE IF EXISTS endi"| mysql -uroot --password="root" "endi" --host=mariadb
G.Tjebbes's avatar
G.Tjebbes committed
25 26


Feth Arezki's avatar
Feth Arezki committed
27 28 29 30 31 32 33
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
34
mako.directories = endi:templates
G.Tjebbes's avatar
G.Tjebbes committed
35 36
mako.imports = from markupsafe import escape_silent
mako.default_filters = escape_silent
37 38 39
endi.ftpdir=%(here)s/endi/tests/datas/
pyramid_deform.tempdir=%(here)s/endi/tests/datas/
endi.depot_path=%(here)s/endi/tests/datas/filedepot/
40
# Payment specific configuration see https://framagit.org/endi/endi_payment
41
endi.interfaces.IPaymentRecordService = endi_payment.public.PaymentService
G.Tjebbes's avatar
G.Tjebbes committed
42
endi_payment.interfaces.IPaymentRecordHistoryService = endi_payment.history.HistoryLogService
Feth Arezki's avatar
Feth Arezki committed
43 44 45

[pipeline:main]
pipeline =
46
    endi