mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
adding gitlab-ci to project
Squashed commit of the following: commit 7de95e8e1e829f2ebeeb0bcea750e9fd2cdfa4b4 Author: Julien Fastré <julien.fastre@champs-libres.coop> Date: Mon Oct 19 23:40:01 2015 +0200 adapting config for build commit c554816956ee1d0f0144824392a5f5984b389d1a Author: Julien Fastré <julien.fastre@champs-libres.coop> Date: Mon Oct 19 22:42:39 2015 +0200 add gitlab-ci to project
This commit is contained in:
parent
fee5b00e35
commit
8e75f0b4ac
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
services:
|
||||||
|
- chill/database:latest
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- export GITHUB_COMPOSER_AUTH=$GITHUB_TOKEN
|
||||||
|
- composer install --no-interaction
|
||||||
|
- cp Test/Fixtures/App/app/config/parameters.gitlab-ci.yml Test/Fixtures/App/app/config/parameters.yml
|
||||||
|
# - php Test/Fixtures/App/app/console --env=test cache:warmup
|
||||||
|
- php Test/Fixtures/App/app/console doctrine:migrations:migrate --env=test --no-interaction
|
||||||
|
- php Test/Fixtures/App/app/console doctrine:fixtures:load --env=test --no-interaction
|
||||||
|
|
||||||
|
test:php-5.6:
|
||||||
|
stage: test
|
||||||
|
script: phpunit --testdox
|
||||||
|
test:php-7:
|
||||||
|
stage: test
|
||||||
|
script: phpunit --testdox
|
@ -7,33 +7,41 @@ class AppKernel extends Kernel
|
|||||||
{
|
{
|
||||||
public function registerBundles()
|
public function registerBundles()
|
||||||
{
|
{
|
||||||
$bundles = array(
|
return array(
|
||||||
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
|
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
|
||||||
|
new Chill\CustomFieldsBundle\ChillCustomFieldsBundle(),
|
||||||
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
|
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
|
||||||
new Symfony\Bundle\TwigBundle\TwigBundle(),
|
new Symfony\Bundle\TwigBundle\TwigBundle(),
|
||||||
new Symfony\Bundle\MonologBundle\MonologBundle(),
|
new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
|
||||||
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
|
|
||||||
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
|
|
||||||
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
|
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
|
||||||
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
|
|
||||||
new Chill\MainBundle\ChillMainBundle(),
|
|
||||||
new Chill\CustomFieldsBundle\ChillCustomFieldsBundle(),
|
|
||||||
new Chill\PersonBundle\ChillPersonBundle(),
|
new Chill\PersonBundle\ChillPersonBundle(),
|
||||||
|
new Chill\MainBundle\ChillMainBundle(),
|
||||||
new Chill\ActivityBundle\ChillActivityBundle(),
|
new Chill\ActivityBundle\ChillActivityBundle(),
|
||||||
|
new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
|
||||||
|
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
|
||||||
|
new Symfony\Bundle\MonologBundle\MonologBundle(),
|
||||||
|
#add here all the required bundle (some bundle are not required)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
|
|
||||||
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
|
|
||||||
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
|
|
||||||
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
|
|
||||||
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
|
|
||||||
}
|
|
||||||
|
|
||||||
return $bundles;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function registerContainerConfiguration(LoaderInterface $loader)
|
public function registerContainerConfiguration(LoaderInterface $loader)
|
||||||
{
|
{
|
||||||
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
|
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getCacheDir()
|
||||||
|
{
|
||||||
|
return sys_get_temp_dir().'/ActivityBundle/cache';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getLogDir()
|
||||||
|
{
|
||||||
|
return sys_get_temp_dir().'/ActivityBundle/logs';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
parameters:
|
parameters:
|
||||||
database_host: 127.0.0.1
|
database_host: chill__database
|
||||||
database_port: 5432
|
database_port: 5432
|
||||||
database_name: postgres
|
database_name: postgres
|
||||||
database_user: postgres
|
database_user: postgres
|
Loading…
x
Reference in New Issue
Block a user