mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
move test/Fixtures to a new directory
This commit is contained in:
parent
3ce6427166
commit
87a3cd20ee
@ -5,10 +5,9 @@
|
||||
before_script:
|
||||
- composer config github-oauth.github.com $GITHUB_TOKEN
|
||||
- php -d memory_limit=-1 /usr/local/bin/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
|
||||
- cp Resources/test/Fixtures/App/app/config/parameters.gitlab-ci.yml Resources/test/Fixtures/App/app/config/parameters.yml
|
||||
- php Resources/test/Fixtures/App/app/console doctrine:migrations:migrate --env=test --no-interaction
|
||||
- php Resources/test/Fixtures/App/app/console doctrine:fixtures:load --env=test --no-interaction
|
||||
|
||||
stages:
|
||||
- test
|
||||
|
@ -3,10 +3,8 @@
|
||||
use Doctrine\Common\Annotations\AnnotationRegistry;
|
||||
use Composer\Autoload\ClassLoader;
|
||||
|
||||
/**
|
||||
* @var ClassLoader $loader
|
||||
*/
|
||||
$loader = require __DIR__.'/../../../../vendor/autoload.php';
|
||||
/** @var ClassLoader $loader */
|
||||
$loader = require __DIR__.'/../../../../../vendor/autoload.php';
|
||||
|
||||
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
||||
|
1362
Resources/test/Fixtures/App/app/bootstrap.php.cache
Normal file
1362
Resources/test/Fixtures/App/app/bootstrap.php.cache
Normal file
File diff suppressed because it is too large
Load Diff
8
Resources/test/Fixtures/App/app/config/parameters.yml
Normal file
8
Resources/test/Fixtures/App/app/config/parameters.yml
Normal file
@ -0,0 +1,8 @@
|
||||
parameters:
|
||||
database_host: 127.0.0.1
|
||||
database_port: 5454
|
||||
# database_port: 5435
|
||||
database_name: postgres
|
||||
database_user: postgres
|
||||
database_password: postgres
|
||||
locale: fr
|
@ -1,19 +1,20 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
|
||||
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
|
||||
//umask(0000);
|
||||
|
||||
set_time_limit(0);
|
||||
|
||||
require_once __DIR__.'/bootstrap.php.cache';
|
||||
require_once __DIR__.'/AppKernel.php';
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||
use Symfony\Component\Console\Input\ArgvInput;
|
||||
use Symfony\Component\Debug\Debug;
|
||||
|
||||
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
|
||||
// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
|
||||
// for more information
|
||||
//umask(0000);
|
||||
|
||||
set_time_limit(0);
|
||||
|
||||
/** @var \Composer\Autoload\ClassLoader $loader */
|
||||
$loader = require __DIR__.'/autoload.php';
|
||||
|
||||
$input = new ArgvInput();
|
||||
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
|
||||
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
|
File diff suppressed because it is too large
Load Diff
@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!is_file($autoloadFile = __DIR__.'/../../vendor/autoload.php')) {
|
||||
throw new \LogicException('Could not find autoload.php in vendor/. Did you run "composer install --dev"?');
|
||||
}
|
||||
|
||||
require $autoloadFile;
|
||||
|
@ -8,6 +8,9 @@
|
||||
"autoload": {
|
||||
"psr-4": { "Chill\\ActivityBundle\\": "" }
|
||||
},
|
||||
"autoload-dev": {
|
||||
"classmap": [ "Resources/test/Fixtures/App/app/AppKernel.php" ]
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Champs-Libres",
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<phpunit bootstrap="./Test/Fixtures/bootstrap.php" colors="true">
|
||||
<phpunit bootstrap="./Resources/test/Fixtures/App/app/autoload.php" colors="true">
|
||||
<testsuites>
|
||||
<testsuite name="ChillActivityBundle test suite">
|
||||
<directory suffix="Test.php">./Tests</directory>
|
||||
@ -17,7 +17,7 @@
|
||||
</whitelist>
|
||||
</filter>
|
||||
<php>
|
||||
<server name="KERNEL_DIR" value="/Test/Fixtures/App/app/" />
|
||||
<server name="KERNEL_DIR" value="Resources/test/Fixtures/App/app/" />
|
||||
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" />
|
||||
</php>
|
||||
</phpunit>
|
||||
|
Loading…
x
Reference in New Issue
Block a user