Commit graph

56 commits

Author SHA1 Message Date
meadsteve 20d5e5a6b2 Add code to builder so pluginconfig.php is loaded if found in the root 2014-03-02 20:00:43 +00:00
meadsteve 3a3cc98f86 rename CommandExecutor::executeCommand() so that it's not confused with the Builder::executeCommand() 2013-12-13 14:41:02 +00:00
steve.brazier 8d8714746c move findBinary from Builder to CommandExecutor. 2013-12-12 16:17:11 +00:00
steve.brazier 5801c6083e move command execution code out of builder class 2013-12-12 14:15:44 +00:00
meadsteve 169a92dfeb refactor the plugin stage calling code. 2013-12-07 14:45:13 +00:00
Steve B 03aeb7e3b1 remove unreachable if 2013-12-07 14:33:59 +00:00
Steve B ce88f50958 fix the plugin executor so that the status is correctly reported. 2013-12-07 13:53:05 +00:00
steve.brazier 6aed18158b extract the success/failure logging of the builder to an interface. 2013-12-06 11:31:39 +00:00
meadsteve 912776801d move plugin execution code in to helper class. 2013-12-06 11:26:56 +00:00
steve.brazier 9207c39105 remove non existent variable. 2013-12-06 09:59:32 +00:00
steve.brazier a942525f84 switch to correct namespace separator in plugin construction. 2013-12-06 09:59:07 +00:00
Steve B 99adec03d5 allow non phpci native plugins. 2013-11-28 14:23:11 +00:00
meadsteve 6467a83d1a adds additional comments to plugin factory. 2013-11-17 22:31:51 +00:00
meadsteve 2bc7558b93 wiring in the plugin factory. doh! 2013-11-17 21:38:51 +00:00
meadsteve 42e462b4c9 remove leading slash. 2013-11-17 21:29:49 +00:00
meadsteve 9d1d2443a9 Move the mailer constructor logic out of the plugin and in to a factory class for reuse. 2013-11-17 21:26:38 +00:00
meadsteve a56df8ed87 Merge HEAD, branch 'master' of https://github.com/Block8/PHPCI into plugin-builder 2013-11-17 17:25:35 +00:00
meadsteve ebb3b9a3e6 switches builder to make use of plugin factory. 2013-11-17 17:24:47 +00:00
Alexander Wenzel 9c330687a0 fixed LoggedBuildContextTidier: now correctly replaces "build" object with "buildID" in log entries 2013-11-12 23:19:55 +01:00
meadsteve e44c7b90d6 All build logs calls now pass the build through as part of the context so this gets recorded in the log message. 2013-10-27 14:21:08 +00:00
meadsteve fc2434b65d Exceptions can now be passed in to the failure logging function. 2013-10-27 12:51:49 +00:00
meadsteve b943c07f87 Fixing some formatting issues 2013-10-26 16:25:34 +01:00
meadsteve 8c88581021 Modified the builder so that it expects to have a psr3 compliant logger attached. 2013-10-26 16:15:29 +01:00
Mathieu Dumoulin b197a9c030 Added leading slash to closure to prevent reference to PHPCI namespace
Don't forget to put \ in front of PHP namespaced objects or you end up in your own namespace.

In reference to commit: 53993a1add
2013-10-15 09:34:24 -04:00
Dan Cryer 53993a1add Fixing callable error in run builds, fixes #170 2013-10-15 14:29:23 +01:00
Dan Cryer 16003ff01b Fixing some more PHPCS/PHPMD errors 2013-10-10 01:12:30 +01:00
Dan Cryer 77fae9a56d Holy cleanup, batman. 2013-10-10 01:01:06 +01:00
Dan Cryer e38d9b646a Adding IRC plugin 2013-10-08 17:19:44 +01:00
Dan Cryer 0c8d9c0f74 Added findBinary, fixes #115 2013-10-08 08:50:10 +01:00
Dan Cryer b33189e08e UI plugins, including quality trend chart, logs and lines of code. Some UI tweaks. 2013-10-08 07:21:46 +01:00
Dan Cryer b47dfbd0b3 Various bug fixes 2013-07-30 02:55:29 +01:00
meadsteve 84370038aa Added basic body and title for the email notifications. 2013-06-04 21:47:45 +01:00
meadsteve a4c051e024 Adding Getter for builder's success property so that plugins can find out if the the build has succeeded or not. 2013-06-01 13:56:09 +01:00
meadsteve 7761d9fc08 Adding Builder::getSystemConfig() to provide easy access to config.yml. 2013-06-01 13:28:42 +01:00
Steve Kamerman 0a755cedae array_walk doesn't alter keys, fixed 2013-05-22 15:17:54 -04:00
Steve Kamerman 40afb58ff7 Added support for interpolation 2013-05-22 14:17:33 -04:00
Steve Kamerman 7245b351a0 Implemented environment plugin 2013-05-19 01:47:41 -04:00
Dan Cryer 29541ac1fe Adding Clean Build and Package Build, Closes #38, Closes #37. 2013-05-17 23:19:38 +01:00
Dan Cryer 7d9abf21fb Fixing PHPMD and PHPCS plugins, updating code to pass both, and updating phpci.yml to enable them. Issue #18 2013-05-16 16:46:46 +01:00
Dan Cryer e4d32b3ea1 Initial work on PSR2 compliance for issue #18 2013-05-16 02:57:30 +01:00
Dan Cryer 6094b7013c Add file-level docblock to every file. 2013-05-16 02:16:56 +01:00
Dan Cryer a5a03e1f07 Switching executeCommand() to use sprintf for parameters, and all the plugins to pass params separately. See #12, closes #24 2013-05-16 00:19:24 +01:00
Dan Cryer be37a5e821 Refactoring builds out into separate model types (Github, Bitbucket, Local) and builder to use build->createWorkingCopy() to make build directory. Fixes #29 2013-05-15 23:47:37 +01:00
Steve Kamerman d3f61ab79e Getting to the bottom of the logging issue 2013-05-15 23:43:34 -04:00
Steve Kamerman 440d600665 Fixed error about using $this outside of object context 2013-05-15 20:26:45 -04:00
Gabriel Baker a4a443f255 fix symlink check and build dir 2013-05-15 21:53:36 +01:00
Dan Cryer 988fa42d92 Updating PHPCI to use Symfony/Console rather than a series of individual PHP files. 2013-05-15 18:27:13 +01:00
Dan Cryer be838c6765 Merging master to bring github branch into line. 2013-05-14 19:57:37 +01:00
Dan Cryer fa18d89ddc Adding support for local path based projects. See pull #2 2013-05-14 19:44:14 +01:00
meadsteve b71849a9c4 I've replaced the requirement for the pecl yaml extension with the symphony component. Sometimes I work on a windows box and the instructions for installing pecl yaml on windows looked a little intimidating:
https://code.google.com/p/php-yaml/wiki/InstallingWithPecl
2013-05-14 18:15:57 +01:00