diff --git a/.travis.yml b/.travis.yml index 0a461f0e8..78e808133 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,9 @@ php: - 5.6 - hhvm -install: composer install --dev +install: + - composer install --dev + - php Tests/Fixtures/App/console --env=test cache:warmup script: phpunit --coverage-text diff --git a/Tests/Fixtures/App/console b/Tests/Fixtures/App/console new file mode 100644 index 000000000..2b45f964b --- /dev/null +++ b/Tests/Fixtures/App/console @@ -0,0 +1,27 @@ +#!/usr/bin/env php +getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev'); +$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod'; + +if ($debug) { + Debug::enable(); +} + +$kernel = new AppKernel($env, $debug); +$application = new Application($kernel); +$application->run($input);