893deada33
Closes #556
40 lines
973 B
PHP
40 lines
973 B
PHP
<?php
|
|
/**
|
|
* PHPCI - Continuous Integration for PHP
|
|
*
|
|
* @copyright Copyright 2014, Block 8 Limited.
|
|
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
* @link https://www.phptesting.org/
|
|
*/
|
|
|
|
namespace PHPCI\Helper;
|
|
|
|
interface CommandExecutor
|
|
{
|
|
/**
|
|
* Executes shell commands. Accepts multiple arguments the first
|
|
* is the template and everything else is inserted in. c.f. sprintf
|
|
* @return bool Indicates success
|
|
*/
|
|
public function executeCommand();
|
|
|
|
/**
|
|
* Returns the output from the last command run.
|
|
*/
|
|
public function getLastOutput();
|
|
|
|
/**
|
|
* Find a binary required by a plugin.
|
|
* @param string $binary
|
|
* @param string $buildPath the current build path
|
|
* @return null|string
|
|
*/
|
|
public function findBinary($binary, $buildPath = null);
|
|
|
|
/**
|
|
* Set the buildPath property.
|
|
* @param string $path
|
|
*/
|
|
public function setBuildPath($path);
|
|
}
|