bootstrap local app for tests

This commit is contained in:
Julien Fastré 2014-12-07 00:15:35 +01:00
parent f5752acdc3
commit 567ebb41ab
4 changed files with 17 additions and 4 deletions

View File

@ -18,6 +18,7 @@ install:
before_script:
- psql -c 'create database test0;' -U postgres
- php Tests/Fixtures/App/app/console.php --env=test cache:warmup
- php Tests/Fixtures/App/app/console.php assets:install Tests/Fixtures/App/web
- php Tests/Fixtures/App/app/console.php doctrine:schema:create --env=test --no-interaction
- php Tests/Fixtures/App/app/console.php doctrine:fixtures:load --env=test --no-interaction

View File

@ -39,7 +39,7 @@ class AppKernel extends Kernel
*/
public function getLogDir()
{
return $this->getRootDir().'/../logs';
return sys_get_temp_dir().'/PersonBundle/logs';
}
}

View File

@ -13,6 +13,15 @@ framework:
templating:
engines: ['twig']
# Assetic Configuration
assetic:
debug: "%kernel.debug%"
use_controller: false
bundles: [ ]
#java: /usr/bin/java
filters:
cssrewrite: ~
doctrine:
dbal:
driver: pdo_pgsql
@ -46,7 +55,7 @@ security:
default:
anonymous: ~
http_basic: ~
form_login:
csrf_parameter: _csrf_token
intention: authenticate

View File

@ -1,4 +1,7 @@
cl_custom_fields:
chill_person:
resource: .
type: chill_routes
type: chill_routes_person
chill_main:
resource: "@ChillMainBundle/Resources/config/routing.yml"