mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Add Travis integration to master
This commit is contained in:
@@ -6,7 +6,9 @@ before_script:
|
||||
- php composer.phar install
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y mplayer ffmpeg ufraw dcraw libavcodec-extra-53 openoffice.org openoffice.org-writer unoconv ghostscript gsfonts ufraw graphicsmagick libgraphicsmagick1-dev libfreetype6-dev libjpeg-dev libgif-dev libtiff-dev libdjvulibre-dev libwmf-dev libmagickcore-dev libmagickwand-dev libpng-dev xpdf libexpat-dev gettext zlib1g-dev build-essential libfaac-dev libmp3lame0 libx264-dev libvpx-dev libtheora-dev libvorbis-dev gpac
|
||||
- mysql -e 'create database ab_test;create database db_test;'
|
||||
- mysql -e 'create database ab_test;create database db_test; create database ab_unitTests; create database db_unitTests;'
|
||||
- mysql -e "GRANT ALL PRIVILEGES ON ab_unitTests.* TO 'phraseaUnitTests'@'localhost'"
|
||||
- mysql -e "GRANT ALL PRIVILEGES ON db_unitTests.* TO 'phraseaUnitTests'@'localhost'"
|
||||
- mysql -e "source `pwd`/hudson/fixtures.sql"
|
||||
- mysql -e 'SET GLOBAL time_zone = "+02:00";'
|
||||
- git clone git://github.com/alchemy-fr/Phraseanet-Extension.git
|
||||
@@ -32,7 +34,3 @@ php:
|
||||
- 5.3.2
|
||||
- 5.3
|
||||
- 5.4
|
||||
|
||||
branches:
|
||||
except:
|
||||
- master
|
||||
|
@@ -1,6 +1,8 @@
|
||||
Phraseanet 3.6 - Digital Asset Management application
|
||||
=================================================
|
||||
|
||||
[](http://travis-ci.org/alchemy-fr/Phraseanet)
|
||||
|
||||
#Features :
|
||||
|
||||
Metadatas Management (include Thesaurus and DublinCore Mapping)
|
||||
|
34
hudson/config.yml
Executable file
34
hudson/config.yml
Executable file
@@ -0,0 +1,34 @@
|
||||
environment: dev
|
||||
dev:
|
||||
phraseanet:
|
||||
servername: 'http://local.phrasea/'
|
||||
maintenance: false
|
||||
debug: true
|
||||
display_errors: true
|
||||
database: main_connexion
|
||||
template_engine: twig_debug
|
||||
orm: doctrine_dev
|
||||
cache: array_cache
|
||||
opcodecache: array_cache
|
||||
prod:
|
||||
phraseanet:
|
||||
servername: 'http://local.phrasea/'
|
||||
maintenance: false
|
||||
debug: false
|
||||
display_errors: false
|
||||
database: main_connexion
|
||||
template_engine: twig
|
||||
orm: doctrine_prod
|
||||
cache: array_cache
|
||||
opcodecache: array_cache
|
||||
test:
|
||||
phraseanet:
|
||||
servername: 'http://local.phrasea/'
|
||||
maintenance: false
|
||||
debug: true
|
||||
display_errors: true
|
||||
database: main_connexion
|
||||
template_engine: twig_debug
|
||||
orm: doctrine_test
|
||||
cache: array_cache
|
||||
opcodecache: array_cache
|
12
hudson/connexions.yml
Executable file
12
hudson/connexions.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
main_connexion:
|
||||
host: localhost
|
||||
port: '3306'
|
||||
user: root
|
||||
password:
|
||||
dbname: ab_test
|
||||
driver: pdo_mysql
|
||||
charset: UTF8
|
||||
test_connexion:
|
||||
driver: pdo_sqlite
|
||||
path: /tmp/tests.sqlite
|
||||
charset: UTF8
|
2554
hudson/fixtures.sql
Normal file
2554
hudson/fixtures.sql
Normal file
File diff suppressed because one or more lines are too long
143
hudson/services.yml
Executable file
143
hudson/services.yml
Executable file
@@ -0,0 +1,143 @@
|
||||
|
||||
Orm:
|
||||
#Doctrine developement service options
|
||||
#Service name
|
||||
doctrine_dev:
|
||||
type: Orm\Doctrine
|
||||
options:
|
||||
#Set automatically propers values for debug
|
||||
#Query & result caches are setted to Array cache
|
||||
#Auto-generating Proxy Classes is setted to false
|
||||
debug: true
|
||||
#Assign a connexion from connexions.yml to the DataBase Abstraction Layer
|
||||
dbal: main_connexion
|
||||
#Available cache driver [memcached, apc, array]
|
||||
#Query cache : is used to cache the transformation of a DQL query to its SQL counterpart
|
||||
#Result cache : is used to cache the results of your queries
|
||||
#Metadata cache : is used to cache entity class metadatas
|
||||
#If No cache is provided all cache are setted to default_cache which is an array cache type
|
||||
cache:
|
||||
query:
|
||||
service: Cache\array_cache
|
||||
result:
|
||||
service: Cache\array_cache
|
||||
metadata:
|
||||
service: Cache\array_cache
|
||||
# Assign a service to log doctrine queries
|
||||
log:
|
||||
service: Log\query_logger
|
||||
|
||||
# Doctrine test service options
|
||||
doctrine_test:
|
||||
type: Orm\Doctrine
|
||||
options:
|
||||
debug: true
|
||||
#Doctrine use a different connection configuration base to run tests
|
||||
dbal: test_connexion
|
||||
cache:
|
||||
query:
|
||||
service: Cache\array_cache
|
||||
result:
|
||||
service: Cache\array_cache
|
||||
metadata:
|
||||
service: Cache\array_cache
|
||||
log:
|
||||
service: Log\query_logger
|
||||
|
||||
# Doctrine production service options
|
||||
doctrine_prod:
|
||||
type: Orm\Doctrine
|
||||
options:
|
||||
debug: false
|
||||
dbal: main_connexion
|
||||
cache:
|
||||
query:
|
||||
service: Cache\array_cache
|
||||
result:
|
||||
service: Cache\array_cache
|
||||
metadata:
|
||||
service: Cache\array_cache
|
||||
|
||||
TemplateEngine:
|
||||
#Define a template engine service
|
||||
#Only Twig is avalaible as a template engine service
|
||||
#see http://twig.sensiolabs.org/
|
||||
|
||||
#Define the service name first
|
||||
twig:
|
||||
#Template engine type
|
||||
type: TemplateEngine\Twig
|
||||
options:
|
||||
#When set to true, the generated templates have a __toString() method that you can use to display the generated nodes
|
||||
debug: false
|
||||
#The charset used by the templates
|
||||
charset: utf-8
|
||||
#Twig will silently ignore invalid variables (variables and or attributes/methods that do not exist)
|
||||
#And replace them with a null value. When set to true, Twig throws an exception instead (default to false)
|
||||
strict_variables: false
|
||||
autoescape: true
|
||||
#Optimize the node tree before compilation
|
||||
optimizer: true
|
||||
|
||||
twig_debug:
|
||||
type: TemplateEngine\Twig
|
||||
options:
|
||||
debug: true
|
||||
charset: utf-8
|
||||
strict_variables: true
|
||||
autoescape: true
|
||||
optimizer: true
|
||||
|
||||
|
||||
Log:
|
||||
# Define a Log service
|
||||
# This one is defined to handle the logs of doctrine queries
|
||||
# Only Monolog is available as a logger service
|
||||
# Please Notice that for doctrine ONLY a echo logger service is available, see below
|
||||
# Monolog logger use the PHP Monolog library to handle logs using differents handlers
|
||||
query_logger:
|
||||
type: Log\Doctrine\Monolog
|
||||
options:
|
||||
#You can precise the output format
|
||||
#This option is only available when log are used to log doctrine queries
|
||||
#Available output [vdump, json, yaml]
|
||||
# vdump : output logs in a var_dump formatted style
|
||||
# json : output logs in json
|
||||
# yml : output logs yml
|
||||
output: json
|
||||
#Name used for the Monolog channel
|
||||
channel: query-logger
|
||||
#Define how the logs will be handled
|
||||
#Avalaibale Handler are [rotate, stream]
|
||||
#Rotate handler is used to stores logs to files that are rotated every day
|
||||
#And a limited number of files are kept by defining the max_day value
|
||||
#Stream handler is used to stores logs in a single local file
|
||||
handler: rotate
|
||||
max_day: 2
|
||||
#Name of the file where logs are written
|
||||
filename: doctrine-query.log
|
||||
|
||||
# Define a phpecho log service for Doctrine
|
||||
# phpecho logger logs doctrine queries to the standard output using echo/var_dump
|
||||
# Notice that phpecho logger do not have options
|
||||
sql_logger:
|
||||
type: Log\Doctrine\Phpecho
|
||||
|
||||
Cache:
|
||||
#Define cache services
|
||||
#There are Four deffirent cache type available [array, xcache, apc, memcache]
|
||||
#Only a memcache service can take option to define port & host for the memcache server
|
||||
array_cache:
|
||||
type: Cache\ArrayCache
|
||||
|
||||
memcache_cache:
|
||||
type: Cache\MemcacheCache
|
||||
options:
|
||||
host: localhost
|
||||
port: 11211
|
||||
|
||||
apc_cache:
|
||||
type: Cache\ApcCache
|
||||
|
||||
xcache_cache:
|
||||
type: Cache\XcacheCache
|
Reference in New Issue
Block a user