deployer/test/fixture/recipe.php

32 lines
618 B
PHP
Raw Normal View History

2015-02-20 17:48:40 +03:00
<?php
2016-01-11 14:00:45 +07:00
namespace Deployer;
2015-02-20 17:48:40 +03:00
require __DIR__ . '/../../recipe/common.php';
2015-02-20 17:48:40 +03:00
localServer('localhost');
localServer('server1');
localServer('server2');
localServer('server3')
->stage('production');
localServer('server4')
->stage('production');
2015-02-20 17:48:40 +03:00
task('test:hello', function () {
2015-02-20 17:48:40 +03:00
writeln('Hello world!');
});
task('test:onlyForStage', function () {
writeln('You should only see this for production');
})
->onlyForStage('production');
task('test', [
'test:hello',
'test:onlyForStage'
]);
2016-05-09 15:04:12 +09:00
task('test:hello', function () {
runLocally('echo "hello"');
writeln('Hello world!');
})->once();