PHP Class Joli\JoliCi\BuildStrategy\TravisCiBuildStrategy

A project must have a .travis.yml file
Author: Joel Wurtz ([email protected])
Inheritance: implements Joli\JoliCi\BuildStrategy\BuildStrategyInterface
Exibir arquivo Open project: jolicode/jolici

Public Methods

Method Description
__construct ( Joli\JoliCi\Builder\DockerfileBuilder $builder, string $buildPath, Joli\JoliCi\Naming $naming, Joli\JoliCi\Filesystem\Filesystem $filesystem )
getJobs ( $directory )
getName ( )
prepareJob ( Joli\JoliCi\Job $job )
supportProject ( $directory )

Protected Methods

Method Description
createMatrix ( array $config ) : Joli\JoliCi\Matrix Create matrix of build
getServices ( $config ) : Service[] Get services list from travis ci configuration file

Private Methods

Method Description
getConfigValue ( array $config, string $language, string $key ) : array Get command lines to add for a configuration value in .travis.yml file
isLanguageVersionSupported ( $language, $version )
parseEnvironementVariable ( $envVar ) : array Parse an envar
parseEnvironmentLine ( $environmentLine ) : array Parse an environnement line from Travis to return an array of variables

Method Details

__construct() public method

public __construct ( Joli\JoliCi\Builder\DockerfileBuilder $builder, string $buildPath, Joli\JoliCi\Naming $naming, Joli\JoliCi\Filesystem\Filesystem $filesystem )
$builder Joli\JoliCi\Builder\DockerfileBuilder Twig Builder for Dockerfile
$buildPath string Directory where builds are created
$naming Joli\JoliCi\Naming Naming service
$filesystem Joli\JoliCi\Filesystem\Filesystem Filesystem service

createMatrix() protected method

Create matrix of build
protected createMatrix ( array $config ) : Joli\JoliCi\Matrix
$config array
return Joli\JoliCi\Matrix

getJobs() public method

public getJobs ( $directory )

getName() public method

public getName ( )

getServices() protected method

Get services list from travis ci configuration file
protected getServices ( $config ) : Service[]
$config
return Joli\JoliCi\Service[]

prepareJob() public method

public prepareJob ( Joli\JoliCi\Job $job )
$job Joli\JoliCi\Job

supportProject() public method

public supportProject ( $directory )