Commit graph

1431 commits

Author SHA1 Message Date
Adirelle cd1210e1e8 Updated the php_codesniffer required version and added a default phpcs.xml.
Added a PHPMD configuration file.
Updated phpci.yml to use the configuration files.

Close #913
2015-04-22 12:22:28 +02:00
Adirelle 425735c2a5 Let CommandExecutor::findBinary throw an exception when the binary is missing.
Close #910
2015-04-22 12:19:05 +02:00
Lewis Wright 7adfd9142f Added check for invalid key
Close #895
2015-04-22 12:06:26 +02:00
Jérémy DECOOL e723289836 Command to create a new build
Close #889
2015-04-22 12:00:38 +02:00
Angel Koilov c1b9766bfe add pingback for IRC plugin
Close #886
2015-04-22 11:58:43 +02:00
Adirelle bc65445c05 Enforce "en" lang in tests.
Some tests compare the result to english strings.

Do not test UnixCommandExecutor on Windows.

PharTest: explain why PHAR writing test are skipped.

InstallCommandTest: mock checkRequirements to allow the tests to run.

Run php_parallel_lint before all other tests.

Close #846
2015-04-22 11:49:26 +02:00
Adirelle ccdc73326d Added a new configuration variable, PHPCI_BUILD_ROOT_DI.
This variable allows to change where the build happens.
It defaults to PHPCI_DIR.'PHPCI/build/'.

Moved build path calculate and build removal into the Build class.

Also remove the build directory when deleting the build.

Close #834
2015-04-22 11:44:54 +02:00
Martin Sadovy 4083fcd9b6 Github: Support pull private repository from pull request
Closes #832
2015-04-22 11:41:33 +02:00
zviryatko f18c663d7b Fix archive link. 2015-04-22 11:37:38 +02:00
Marco Vito Moscaritolo 53f9105a9a Merge pull request #871 from REBELinBLUE/fix_wipe_error
Preventing the wipe plugin failing due to an undefined variable
2015-04-16 18:39:30 +02:00
Marco Vito Moscaritolo 5886ee616a Merge pull request #845 from MarkMaldaba/fix_paths_with_spaces
Fixed the install script, which bails-out with an error if the PHPCI path contains spaces.
2015-04-12 21:17:12 +02:00
Adirelle fb978c6c51 Detailed webhook responses.
Fixed docblocks.

Reworked WebhookController to enforce Json responses in ::handleAction.

Check the project type match the webhook.

When creating several builds, do not stop on first error.

Try to create every builds and report 'ok' if at least one succeeds.

CS fix.

Fixed Uses.

Fixed the types accepted by the git webhook.

Added some really basic test.
2015-04-09 13:09:03 +02:00
zviryatko b3f72de0fe Change xmpp config and message files directory 2015-04-09 12:08:27 +02:00
Angel Koilov 5afa26bf05 remove unnecessary code 2015-04-09 12:06:32 +02:00
Tobias van Beek 60e5d53f44 Add the --recursive parameter to the git clone to get the submodules 2015-04-09 12:03:08 +02:00
Adirelle bc634a570f Reworked TapParser to be compliant and more robust.
Added another test case from #571.

Updated the output of TapParser::processTestLine.

Broke TapParser::parse down in simpler methods.

TapParser: ignore leading garbage and properly complain on missing TAP log.

TapParser: detect and report duplicated TAP log.

TapParser: got rid of the "test" and "suite" values.

They are only available with PHPUnit.

TapParser: append the message from yaml diagnostic to existing message.

Reworked the dispaly of test results.

PHPUnit plugin: pretty print test data.
2015-04-09 12:00:10 +02:00
Nicolplaás 58749cdee8 Add spanish laguage support 2015-04-09 11:57:46 +02:00
Adirelle df5e378b8a Use sensiolabs/ansi-to-html to parse the build logs.
Added an AnsiConverter helper.

Use the AnsiConverter in the email and page templates that display the build log.

Use a dedicated stylesheet for the ANSI converter.

It can be customized.
It can be inlined in the notifications.

Do not use ProphecyTestCase when not needed.
2015-04-09 11:54:57 +02:00
Marco Vito Moscaritolo 800f0539af Merge pull request #842 from corpsee/feature-ui-improvements
UI improvements
2015-03-25 12:51:10 +01:00
Dmitry Khomutov f1d117b866 Fixed 'start' string for ru lang
Fixed 'from' and 'to' strings for ru lang
2015-03-18 13:10:21 +01:00
LAHAXE Arnaud e2cc62c714 Fix french typo mistake 2015-03-18 12:26:27 +01:00
Adirelle 52ac087ec8 Code style fixed. 2015-03-18 12:21:06 +01:00
Adirelle 97838fbaad Generate an new session identifier on successful login to prevent session fixation attacks. 2015-03-18 12:21:06 +01:00
Adirelle 54b4a8d081 Use a CSRF token on the login form to prevent CSRF attacks. 2015-03-18 12:21:05 +01:00
Mark Clements ca8ff8d743 Switching tabs to spaces as per style guide.
No functional changes.
2015-03-18 09:47:47 +00:00
Marco Vito Moscaritolo 5d468866c2 Merge pull request #844 from MarkMaldaba/fix_space_after_colon
Fixed an inconsistency in the way the prompts in the install scripts were being output.
2015-03-18 09:58:21 +01:00
Stephen Ball bdf17a3727 Parsing variables in the code coverage output directory for PHPUnit 2015-03-16 11:10:03 +00:00
Stephen Ball b78f144f0e Parsing variables in the Wipe plugin 2015-03-16 11:09:45 +00:00
Stephen Ball e0750cf9cc Preventing the plugin failing due to an undefined variable 2015-03-16 11:05:33 +00:00
Stephen Ball 3b05f05f1c Removed log output so that it matches the other plugins which don't pollute the build log, and to prevent issues with the log output not being escaped 2015-03-13 13:31:38 +00:00
Dan Cryer 8d3ca874cd Fixing pull request builds. 2015-03-11 07:48:22 +00:00
Dan Cryer 10502493ac Update to only build the latest commit from a Github pull request webhook. 2015-03-10 20:20:54 +00:00
vsguts c171545778 Fixing symlink removal.
Closes #854
2015-03-10 19:11:43 +00:00
Gustavo Novaro b0f5db8df8 Remove blank style tag in header
Remove the tag <style> the header because it was not used

Closes #863
2015-03-10 19:04:05 +00:00
Dmitry Khomutov 4493685d8f Fixed 'date' nl lang string 2015-03-10 15:44:33 +06:00
Igor Timoshenko cb6dfb46d2 Fixed typos in Ukrainian language 2015-03-10 10:15:50 +01:00
Adirelle afbfa297b9 Display a green border in passing build notifications. 2015-03-10 09:53:36 +01:00
Dmitry Khomutov 74cc16b83f Added default value in profile language select (current language) 2015-03-10 09:51:22 +01:00
Leszek f583395122 archived 2015-03-10 09:29:37 +01:00
Marco Vito Moscaritolo b5eeda7667 Merge pull request #857 from thomasfrei/remove-short-array-syntax
Remove short array syntax to keep backwards compatibility with php5.3
2015-03-07 20:00:37 +01:00
Thomas Frei 985a21479c Remove short array syntax to keep backwards compatibility with php5.3 2015-03-06 17:44:22 +01:00
James Inman 9f5fef4fcb Merge pull request #851 from njovin/master
Fix #840: Technical Debt plugin not storing data/displaying results.
2015-03-05 08:39:17 +00:00
Nathan Jovin 0392c4aaf6 Fix issue #840 Technical Debt not storing data nor displaying results in table 2015-03-05 00:12:42 -08:00
Mark Clements efe16ce11a Fixed the install script, which bails-out with an error if the PHPCI path contains spaces.
This occurs commonly on Windows, but from my reading of the code it would also be a problem on other platforms if spaces were present (though this is less likely, due to different naming conventions).

It has been fixed by using escapeshellarg() on both of the paths used in the command.

Fixes #698, which I've just noticed has a similar solution suggested in one of the comments, but was closed without anyone actually implementing it.
2015-03-02 22:49:22 +00:00
Mark Clements b0598c67be Fixed an inconsistency in the way the prompts in the install scripts were being output.
All the DB/host fields have a space after the colon, which is much better as it means the text you type is slightly separated from the prompt.  However, the admin user fields didn't include this space which was inconsistent and made the install script a little less professional.

I have therefore added the missing space for the prompts which didn't have it in the English language file, and have also updated all other language files to also use this format.  Most of them followed the same inconsistency as the English version, though some were consistent but without a space, and some which were differently inconsistent (both internally, and between languages).
2015-03-02 22:31:01 +00:00
Dmitry Khomutov cd76076e95 Fixed 'date' it lang string 2015-03-02 08:18:40 +06:00
Dmitry Khomutov 09e8331fc5 Code style fix 2015-02-28 23:51:04 +06:00
Dmitry Khomutov ce7479b19b Added Date column for builds table in project page. 2015-02-28 23:38:56 +06:00
Dmitry Khomutov 39d386a629 Added total builds count to index and project page 2015-02-28 23:13:02 +06:00
Dan Cryer 6fd67d6dd6 Fixing final PHPCS error. 2015-02-26 08:48:40 +00:00