gitlab-ci.ini 2.26 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 6 7
pyramid.includes =
                    endi_celery
                    pyramid_tm
8
                    pyramid_mailer.testing
9
                    pyramid_services
G.Tjebbes's avatar
G.Tjebbes committed
10 11 12
                    pyramid_layout
                    pyramid_mako
                    pyramid_chameleon
G.Tjebbes's avatar
G.Tjebbes committed
13 14 15
                    pyramid_celery
                    js.deform
                    deform_extensions
16

Feth Arezki's avatar
Feth Arezki committed
17
#### CONFIGURE THOSE LINES TO ALLOW THE TESTS TO SETUP A MYSQL DATABASE ####
G.Tjebbes's avatar
G.Tjebbes committed
18
sqlalchemy.url = mysql://endi:endi@mariadb/endi?charset=utf8
G.Tjebbes's avatar
G.Tjebbes committed
19 20
endi_payment_db.url =mysql://endi:endi@mariadb/endi?charset=utf8
sqlalchemy.echo=False
Feth Arezki's avatar
Feth Arezki committed
21
sqlalchemy.encoding=UTF8
G.Tjebbes's avatar
G.Tjebbes committed
22 23 24 25
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
26

Feth Arezki's avatar
Feth Arezki committed
27 28
session.longtimeout=3600
cache.regions = default_term, second, short_term, long_term
G.Tjebbes's avatar
G.Tjebbes committed
29
# Pour les tests unitaires, pas d'impact sur le temps de run
30
cache.enabled = False
G.Tjebbes's avatar
G.Tjebbes committed
31
cache.type = memory
Feth Arezki's avatar
Feth Arezki committed
32 33 34 35
cache.second.expire = 1
cache.short_term.expire = 1
cache.default_term.expire = 1
cache.long_term.expire = 1
36
mako.directories = endi:templates
G.Tjebbes's avatar
G.Tjebbes committed
37 38
mako.imports = from markupsafe import escape_silent
mako.default_filters = escape_silent
39
endi.ftpdir=%(here)s/endi/tests/datas/
40 41
pyramid_deform.tempdir=%(here)s/endi/tests/tmp
endi.depot_path=%(here)s/endi/tests/tmp/filedepot/
G.Tjebbes's avatar
G.Tjebbes committed
42 43 44
# payment specific configuration see https://framagit.org/endi/endi_payment
# public service
endi.interfaces.ipaymentrecordservice = endi_payment.public.paymentservice
45

G.Tjebbes's avatar
G.Tjebbes committed
46
# Payment specific configuration see https://framagit.org/endi/endi_payment
47 48 49 50 51 52
# History management service
endi_payment.interfaces.IPaymentRecordHistoryService = endi_payment.history.HistoryDBService

# History Archive service
endi_payment.interfaces.IPaymentArchiveService = endi_payment.archive.FileArchiveService
endi_payment_archive_storage_path = %(here)s/endi/tests/tmp/
Feth Arezki's avatar
Feth Arezki committed
53

G.Tjebbes's avatar
G.Tjebbes committed
54 55
endi.includes=

Feth Arezki's avatar
Feth Arezki committed
56 57
[pipeline:main]
pipeline =
58
    endi