Commit graph

573 commits

Author SHA1 Message Date
Dan Cryer acf4d093bb Updating PHPMD to enforce rules being an array. Fixes #319 2014-04-16 12:30:03 +01:00
Dan Cryer 0e6523e2cd Adding basic git plugin 2014-04-16 10:14:19 +00:00
Dan Cryer 886d79946d Fixing issues when adding a gitlab project 2014-04-16 10:14:06 +00:00
Dan Cryer ad38db47bd Updating PHPSpec plugin to work with v2. Fixes #339 2014-04-16 10:23:04 +01:00
Dan Cryer 257249fadd Adding guard around ssh-keygen in project controller, hopefully fixes #340 2014-04-16 09:15:39 +00:00
Dan Cryer 0a8b7cd35b Merge pull request #342 from corpsee/database-yml
Added database-based yml build config #2
2014-04-16 09:44:13 +01:00
Dan Cryer 918cc758af Merge pull request #341 from Block8/dc/installer-fixes
Fixes to improve installation
2014-04-16 09:29:27 +01:00
Dan Cryer 1bc5f9048c Fixes for feedback in #341. 2014-04-16 09:29:01 +01:00
Dan Cryer e53c05c56c Merge branch 'master' of github.com:Block8/PHPCI 2014-04-16 09:05:57 +01:00
Dan Cryer 6917e88f9b Adding global try/catch in Builder, in hope of fixing forever-hanging. Closes #354, Closes #304 2014-04-16 09:05:48 +01:00
Dan Cryer 6513454265 Adding global try/catch in Builder, in hope of fixing forever-hanging. Closes #354, Closes #304 2014-04-16 09:05:46 +01:00
Dan Cryer 0bf7698cac Check $this->path is set before use, fixes #355 2014-04-16 08:57:17 +01:00
Steve B 1023541907 Merge pull request #349 from NamelessCoder/patch-5
Wipe Plugin - wipes a folder
2014-04-14 10:35:41 +01:00
Steve B 4b61d6b435 Merge pull request #350 from NamelessCoder/patch-6
Preserve absolute paths in Plugin.PhpMessDetector
2014-04-14 08:58:05 +01:00
Steve B ecc2ff3fc6 Merge pull request #347 from NamelessCoder/patch-3
Missing property declaration for `ignore` on Plugin.CopyBuild
2014-04-14 08:56:25 +01:00
Claus Due 34ea46e139 Preserve absolute paths in Plugin.PhpMessDetector
Before: all paths, including absolute paths, were treated relative to build directory.

After: any absolute path is not prefixed with the build directory path; it gets used as-is.
2014-04-12 17:28:52 +02:00
Claus Due 9cb63dbe06 Wipe Plugin - wipes a folder 2014-04-12 14:31:31 +02:00
Claus Due 402e576cad Missing property declaration for ignore on Plugin.CopyBuild 2014-04-12 13:50:10 +02:00
Claus Due 187d689808 Bad copy/pasted method comment in CopyBuild plugin 2014-04-12 02:44:27 +02:00
Corpsee 7ac671424e Genereted models by console phpci:generate command 2014-04-10 23:52:21 +07:00
Corpsee ccb3d91ae1 Inverted priority of configs: phpci.yml is primary now 2014-04-10 23:41:02 +07:00
Corpsee f87fc2ef90 Merge branch 'master' into database-yml 2014-04-10 23:11:41 +07:00
Dan Cryer 8841eabc94 Merge pull request #330 from sklerotraficon/master
Bugfix Errors with PHPCI GitHub hook #296
2014-04-10 16:33:35 +01:00
Dan Cryer 2b791b1f3b Removing commented code from the installer 2014-04-10 16:31:10 +01:00
Dan Cryer 65f51cff4a Adding verification to the install and update commands to check whether PHPCI is installed. 2014-04-10 14:59:01 +00:00
Dan Cryer 9f182aad91 Updating console installer to be more reliable, easier to use, and use Symfony console properly. 2014-04-10 15:38:16 +01:00
Dan Cryer efe8529d3f Removing warning about install.php being present. 2014-04-10 15:37:54 +01:00
Witold Wasiczko 72b7a3d912 Use args in Codeception plugin 2014-03-31 00:45:20 +02:00
zigster 9f5b05aa2a Bugfix Errors with PHPCI GitHub hook #296
> fixed access to undefined class member _buildStore to buildStore
2014-03-30 11:59:56 +02:00
Remo Laubacher 5892fcb26e fix BuildLogger instantiation 2014-03-26 08:22:27 +01:00
Steve B 2fe80bdd00 Merge pull request #282 from freez10/functionalIssues
Fix for #276
2014-03-25 22:13:29 +00:00
Corpsee c380fbb0bf Merge branch 'master' into database-yml 2014-03-25 22:28:09 +07:00
Steve B ff6dfefb98 Merge pull request #307 from meadsteve/feature/pluginfactoryconfig
Allow configuration of the plugin factory on a per install basis
2014-03-25 14:20:02 +00:00
steve.brazier 326113ebbc psr tidy up of util/Factory.php 2014-03-25 14:18:50 +00:00
steve.brazier 7e669ada47 Merge remote-tracking branch 'origin/master' into feature/pluginfactoryconfig
Conflicts:
	PHPCI/Builder.php
	PHPCI/Plugin/Util/Factory.php
2014-03-25 14:17:03 +00:00
steve.brazier cc71045e57 Merge remote-tracking branch 'origin/master' into feature/pluginfactoryconfig
Conflicts:
	PHPCI/Builder.php
	PHPCI/Plugin/Util/Factory.php
2014-03-25 14:13:45 +00:00
Steve B a5f81f0975 Merge pull request #309 from corpsee/error-log
Added simple error/exception handle and logging
2014-03-25 10:32:00 +00:00
Corpsee 08a15d8724 Added exception context for errror/exception handler logging 2014-03-24 23:43:20 +07:00
Corpsee 04dae16157 Fixed require() in LoggerConfig 2014-03-20 22:51:30 +07:00
Corpsee 15d5c022c5 Improved error/exception handler and logging 2014-03-20 22:28:01 +07:00
Corpsee b28b5a575f Fixed rm for windows 2014-03-20 22:27:06 +07:00
Corpsee b2240104b4 Fixed rm for windows 2014-03-20 22:27:05 +07:00
Corpsee e7e685e9bd ProjectController::view 404 fix 2014-03-20 22:27:04 +07:00
Corpsee 92647c6bf9 Added simple error/exception handler and logging 2014-03-18 01:10:47 +07:00
Corpsee 3aa4806e25 Windows fixes 2014-03-15 13:01:41 +07:00
Corpsee 20bab0d47a Windows fixes 2014-03-15 12:57:06 +07:00
Corpsee f4df607a16 Moved handleConfig functionality into general Build method. 2014-03-15 12:22:59 +07:00
Corpsee 7a910631e6 Added database-based yml build config 2014-03-15 12:18:12 +07:00
Corpsee 656e0a882e Change 'cp' command to 'copy' for windows 2014-03-14 00:06:59 +07:00
Corpsee 18701544a0 Fixed 'cd' command for windows 2014-03-13 00:37:57 +07:00
Corpsee 39477678d2 Fixed git checkout for commitId = 'Manual' 2014-03-13 00:05:54 +07:00
Corpsee af22da6a1c Fixed CommitId link 2014-03-13 00:05:53 +07:00
steve.brazier 851f637899 format tidy up of buildPluginFactory() 2014-03-10 12:28:42 +00:00
steve.brazier 9c24fbaecb Psr\Log\LoggerInterface to the types that the plugin factory supplies by default. 2014-03-10 12:27:17 +00:00
steve.brazier 24b5bc549d Add debug logging to findBinary() 2014-03-10 12:12:38 +00:00
steve.brazier ff9ebdf744 Add debug logging to findBinary() 2014-03-10 12:08:16 +00:00
steve.brazier d9ff36ddb4 Merge remote-tracking branch 'corpsee/master' 2014-03-10 09:48:50 +00:00
Corpsee e7bca06363 Fixed unittests on windows 2014-03-09 01:46:03 +07:00
Corpsee c3b9e62adf Fixed composer plugin for using on Windows 2014-03-09 00:30:32 +07:00
Corpsee ffc7d1c1b9 Fixed findBinary function for windows (which -> where) 2014-03-09 00:30:00 +07:00
Christian Wahler 2290e37b97 Use PHP 5.3 compatible array syntax 2014-03-03 18:10:33 +01:00
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 6d4e49d07b Add code to allow configuration for the plugin factory to be stored on a per install basis. 2014-03-02 19:59:52 +00:00
steve.brazier bf4822c73b Merge branch 'bugfix/phpmd-phpcs-cleanup' of https://github.com/Block8/PHPCI 2014-02-27 14:24:32 +00:00
steve.brazier b60e278cf9 psr2 tidy up of logging code. 2014-02-27 14:23:51 +00:00
steve.brazier f5950d0be3 Merge branch 'bugfix/phpmd-phpcs-cleanup' of https://github.com/Block8/PHPCI 2014-02-27 14:18:35 +00:00
steve.brazier 5178c4c229 tidy up code in Command namespace 2014-02-27 14:12:19 +00:00
steve.brazier 6431ef501e fix psr2 violations in EmailPlugin 2014-02-27 14:04:08 +00:00
steve.brazier 112adba332 fix psr2 violations in Plugin/Util 2014-02-27 14:02:21 +00:00
Dan Cryer 10dc3eedbb Fixing rebuild 2014-02-27 10:57:04 +00:00
Dan Cryer b4c931be6b Adding committer email to build view 2014-02-26 15:33:11 +00:00
Dan Cryer 192fa20284 Fixing getAccessInformation() 2014-02-26 15:23:24 +00:00
Dan Cryer 48a8c8b89a Merge branch 'master' of github.com:Block8/PHPCI 2014-02-26 15:18:54 +00:00
Dan Cryer ac0bac111a Fixing getAccessInformation() 2014-02-26 15:18:46 +00:00
steve.brazier b421b20935 fix code sniff violations. 2014-02-26 14:35:14 +00:00
Pavel Pavlov e7dcd82125 This fixes #276 : Delete Build button not functioning in view build 2014-02-26 15:50:01 +04:00
Steve B 3370240242 Merge pull request #267 from meadsteve/plugin-discovery
RFC: Plugin discovery
2014-02-25 22:43:38 +00:00
meadsteve 06625513d2 update email tests now that cc can be specified. 2014-02-25 22:39:37 +00:00
meadsteve 2b93fe0c94 add getProjectTitle convenience method to the Build class. 2014-02-25 22:36:20 +00:00
meadsteve aa33a8761e update PluginController to use PHPCI plugin directory as well as composer to get information about installed plugins. 2014-02-25 22:22:32 +00:00
meadsteve 28fc30682b add FilesPluginInformation class to retrieve plugins contained with a directory. 2014-02-25 20:52:19 +00:00
meadsteve dd5ff7a835 Extract interface for InstalledPluginInformation 2014-02-25 19:40:00 +00:00
meadsteve 6b2d0aebf1 rename LoadedPluginInformation to ComposerPluginInformation. 2014-02-25 19:33:00 +00:00
meadsteve 1f42741623 Merge branch 'master' of https://github.com/Block8/PHPCI into plugin-discovery 2014-02-25 19:26:25 +00:00
Dan Cryer 4d5f4b44b7 Fixing BuildInterpolator bug 2014-02-25 17:00:18 +00:00
Dan Cryer 0193f07de2 Making commit links work throughout the UI 2014-02-25 17:00:05 +00:00
Dan Cryer d2d966ee69 Fixing bug in Builder related to the new PHPCI\Store 2014-02-25 16:59:28 +00:00
Dan Cryer eaec52b525 Adding commit message to Build 2014-02-25 16:43:06 +00:00
Dan Cryer e888032bdf Updating Bitbucket to match Github and Gitlab in regards to building all payload commits instead of one per branch 2014-02-25 16:24:51 +00:00
Dan Cryer 33c7312f8e Merge branch 'master' of github.com:Block8/PHPCI 2014-02-25 16:04:28 +00:00
Dan Cryer 948d32110f Adding CC option to email plugin 2014-02-25 16:03:00 +00:00
Dan Cryer 079a567cf0 Update Codeception.php 2014-02-25 10:57:44 +00:00
Dan Cryer d935c94041 Lots of clean up: Fixed remote git build to only checkout a commit if there is one, cleaned up logging to remove the logger cruft from the visible log and shortened paths within the log by removing the build directory, added a build-level exception handler to catch things like failed clones and so on. 2014-02-25 10:16:58 +00:00
Dan Cryer a1f47ddfe1 Fixing Gitlab support 2014-02-25 09:47:09 +00:00
Dan Cryer 08af82e84b Updating Gitlab webhook support 2014-02-25 09:09:38 +00:00
Dan Cryer 0c125ab962 Pulling email address out of raw author from bitbucket 2014-02-24 21:13:40 +00:00
Dan Cryer 73abea2485 Adding a formatted email for build fails 2014-02-24 21:04:08 +00:00
Dan Cryer e6ef498db4 Adding support for HTTP commit-based builds too 2014-02-24 20:34:31 +00:00
Dan Cryer 43ecd57775 Adding support for building specific revisions, rather than just branches 2014-02-24 20:28:18 +00:00
Dan Cryer 4f39e1cca4 Fixing Bitbucket and Github webhooks 2014-02-24 20:14:57 +00:00
Dan Cryer a0ff2f6ab8 Fix 2014-02-24 19:35:42 +00:00
Dan Cryer 0bcb13af09 Updating Bitbucket Webhook 2014-02-24 19:23:46 +00:00
Dan Cryer 1ddce31488 Updating PHPCI to support new b8framework release 2014-02-24 15:30:44 +00:00
kodok-buncit 30b3be7c2d fix wrong url on view 2014-02-18 18:41:39 +07:00
Wogan May 37f06defc7 Fixing short tags 2014-01-28 23:27:39 +02:00
Steve B 54694d197b Merge pull request #253 from woganmay/create-admin-user
Create admin user
2014-01-16 00:55:32 -08:00
Steve B ddf7f8a4c3 Merge pull request #249 from c2is/master
Added executable option for behat plugin
2014-01-16 00:52:58 -08:00
Steve B 53e295f145 Merge pull request #241 from meadsteve/buillder-component-extraction
Buillder component extraction
2014-01-16 00:52:42 -08:00
Wogan May cd3a18d73c Create admin user
New console command just to create an admin user
2014-01-14 23:09:40 +02:00
Wogan May 89931d01b5 Revert "Create an admin user"
This reverts commit f6f5a6e111.
2014-01-14 23:07:12 +02:00
Wogan May f6f5a6e111 Create an admin user
New console command to add an admin user without trying to reinstall the
whole app.
2014-01-14 23:03:23 +02:00
a.cianfarani a1f0b93861 Added executable option for behat plugin 2014-01-10 10:58:14 +01:00
Steve B c35e3386cc Merge pull request #242 from freez10/master
Fix for #236
2014-01-04 02:53:07 -08:00
Raul Ferriz 1ac77fd268 Removed unused use clauses. 2014-01-04 10:20:20 +01:00
Raul Ferriz 4b50b9eb77 Fix daemonise crash. 2014-01-04 10:19:55 +01:00
Raul Ferriz 8bc043065a Check for option verbose instead of get it.
This avoid crashing when called by daemonise command.
2014-01-04 10:17:24 +01:00
Pavel Pavlov df2a8aeac2 Fixes #236 Javascript bug, delete build error 2013-12-31 13:46:23 +04:00
meadsteve 4b9207e05f update plugin controller to display plugin information as well as composer package information. 2013-12-29 17:35:33 +00:00
meadsteve 71588cd8e1 add LoadedPluginInformation class to process composer's installed.json file and pull out information about phpci plugins. 2013-12-29 17:34:41 +00:00
Steve B bc838e0c43 Merge pull request #238 from meadsteve/command-execution
Move shell command execution out of builder into separate class and fix issue #218
2013-12-20 01:38:03 -08:00
meadsteve cfb0db5b81 fixing builder so that PluginExecutor receives BuildLogger instance 2013-12-17 15:44:49 +00:00
meadsteve 1b2f19c81f remove interopolation code from builder and make use of BuildInterpolator object. 2013-12-17 15:24:13 +00:00
meadsteve f0d224ce3c copy code from Builder to create BuildInterpolator. 2013-12-17 15:23:17 +00:00
meadsteve 248579f67d add getProjectTitle() to buildBase as shorthand for getProject()->getTitle() 2013-12-17 15:14:26 +00:00
localhost8080 f6ee6493e2 adding support for the 'committer' parameter
adding support for the committer parameter in the email configuration
section of phpci.yaml

enabled with
committer: true
in your phpci.yml
2013-12-15 20:21:12 +00:00
meadsteve 356a2293a1 move logging related classes to appropriate namespace. 2013-12-13 16:10:54 +00:00
meadsteve 1bc2117c69 extracted build logging logic from the Builder class. 2013-12-13 15:57:56 +00:00
meadsteve 725e2aeadd Merge branch 'master' of https://github.com/meadsteve/PHPCI 2013-12-13 15:01:02 +00:00
meadsteve c67b29eacd adding missing required packages to the PluginController. 2013-12-13 15:00:05 +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 d26568b962 fix issue #218 by blanking last output before executing new command. 2013-12-12 14:16:14 +00:00
steve.brazier 5801c6083e move command execution code out of builder class 2013-12-12 14:15:44 +00:00
indigodp cfe45f54d0 Update LocalBuild.php
Add fetching needed branch for local build
2013-12-11 09:33:59 +02:00
Steve B e49128f4d6 Merge pull request #232 from Block8/feature/shell_plugin_updates
Updating shell plugin with suggestions from #188
2013-12-10 02:53:31 -08:00
Dan Cryer 2cc554d9aa Merge pull request #233 from meadsteve/build-status-fix
Refactor how the plugin stages are called
2013-12-09 08:52:41 -08:00
Steve B 4e4607434c Merge pull request #230 from Block8/plugin-builder
Allow 3rd party plugins
2013-12-09 08:45:36 -08:00
Dan Cryer 123815aec9 Fix for #210 2013-12-09 16:27:39 +00:00
Dan Cryer 853510a1d3 Updating shell plugin with suggestions from #118 2013-12-09 16:12:54 +00:00
Steve B 6918addab4 Merge pull request #224 from freez10/master
UI Improvement: Modal confirmation dialog
2013-12-07 08:43:21 -08:00
Pavel Pavlov 148d30f74e Don't redirect or reload a page when confirmation dialog wasn't confirmed 2013-12-07 19:36:50 +04: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 974aeeffdc Merge branch 'unit-testing' into plugin-builder 2013-12-06 15:18:37 +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 4a9103d6eb Merge pull request #227 from meadsteve/unit-testing
Unit testing - LoggerConfig
2013-11-29 02:17:02 -08:00