add doctrine migration to CI from person bundle

refs #402
This commit is contained in:
Julien Fastré 2015-01-29 16:54:25 +01:00
parent 5bd4e9ff1a
commit d6822520d2
4 changed files with 9 additions and 4 deletions

View File

@ -14,7 +14,7 @@ addons:
postgresql: "9.3"
install:
- composer install --dev
- composer install --dev --no-interaction
- cp Tests/Fixtures/App/app/config/parameters.travis.yml Tests/Fixtures/App/app/config/parameters.yml
before_script:
@ -22,7 +22,7 @@ before_script:
- psql -d test0 -c 'CREATE EXTENSION unaccent;' -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:migrations:migrate --no-interaction
- php Tests/Fixtures/App/app/console.php doctrine:fixtures:load --env=test --no-interaction
script: phpunit --coverage-text

View File

@ -16,7 +16,8 @@ class AppKernel extends Kernel
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Chill\PersonBundle\ChillPersonBundle(),
new Chill\MainBundle\ChillMainBundle(),
new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle,
new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle()
#add here all the required bundle (some bundle are not required)
);
}

View File

@ -0,0 +1,2 @@
*
!.gitignore

View File

@ -30,7 +30,9 @@
"chill-project/main": "*@dev",
"chill-project/custom-fields": "*@dev",
"doctrine/doctrine-fixtures-bundle": "~2.2",
"champs-libres/composer-bundle-migration": "~1.0"
"champs-libres/composer-bundle-migration": "~1.0",
"doctrine/doctrine-migrations-bundle": "dev-master@dev",
"doctrine/migrations": "~1.0@dev"
},
"require-dev": {
"symfony/dom-crawler": "2.5",