1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- /*
- * This file is part of Rocketeer
- *
- * (c) Maxime Fabre <ehtnam6@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- use Rocketeer\Binaries\PackageManagers\Composer;
- use Rocketeer\Tasks\Subtasks\Primer;
- return [
- // Task strategies
- //
- // Here you can configure in a modular way which tasks to use to
- // execute various core parts of your deployment's flow
- //////////////////////////////////////////////////////////////////////
- // Which strategy to use to check the server
- 'check' => 'Php',
- // Which strategy to use to create a new release
- 'deploy' => 'Clone',
- // Which strategy to use to test your application
- 'test' => 'Phpunit',
- // Which strategy to use to migrate your database
- 'migrate' => 'Artisan',
- // Which strategy to use to install your application's dependencies
- 'dependencies' => 'Composer',
- // Execution hooks
- //////////////////////////////////////////////////////////////////////
- 'composer' => [
- 'install' => function (Composer $composer, $task) {
- return $composer->install([], ['--no-interaction' => null, '--prefer-dist' => null]);
- },
- 'update' => function (Composer $composer) {
- return $composer->update();
- },
- ],
- // Here you can configure the Primer tasks
- // which will run a set of commands on the local
- // machine, determining whether the deploy can proceed
- // or not
- 'primer' => function (Primer $task) {
- return [
- // $task->executeTask('Test'),
- // $task->binary('grunt')->execute('lint'),
- ];
- },
- ];
|