Commit Graph

258 Commits

Author SHA1 Message Date
b48300d7b2 Add more groups for acceptance tests 2021-05-17 12:28:35 +02:00
81fc441d4f Add parallel execution for data generator
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
388db464bf Generate validation metadata also for doctrine proxies
[MAILPOET-3604]
2021-05-06 14:06:26 +02:00
a46595cfea Merge doctrine proxies and metadata generate commands into one
[MAILPOET-3604]
2021-05-06 14:06:26 +02:00
44f1269916 Change plugins download directory
[MAILPOET-3482]
2021-04-26 13:47:41 +02:00
ff806859cb Add robo command for downloading WooCommerce
[MAILPOET-3482]
2021-04-26 13:47:41 +02:00
edf5be833d Add Robo task for downloading WooCommerce Subscription plugin
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
70138089d7 PHPCS: set the supported PHP versions in the ruleset file
This commit moves the definition of the supported PHP versions from
RoboFile.php file to the PHPCS configuration file, ruleset.xml. This
should make it easier to configure PHPCS in other places like the IDE.

I also removed the constraint of the highest supported PHP version
(previously, it was hard-coded to 8.0) as I believe we support new PHP
versions as soon as they are released. With this change, we don't need to
remember to update testVersion tag whenever there is a new PHP version.

[MAILPOET-3439]
2021-02-22 15:31:56 +03:00
f8c74af9e3 Add PHPCS checks to the pre-commit hook
This commit adds PHPCS checks, using `./do qa:code-sniffer`, to the
pre-commit hook. To be able to do this, I had to modify `./do
qa:code-sniffer` to call PHPCS only once and change its signature to
accept an optional parameters with the list of files to check. If this
parameter is not passed, all files are checked.

As discussed with the rest of the team, before we were calling PHPCS
multiple times to be able to check for compatibility with different
versions of PHP, but as far as we can tell this is not necessary, and we
can check for compatibility with PHP >= 7.1 for all files.

As far as I know, changing the signature of RoboFile::qaCodeSniffer() is
not a problem and I updated the only instance where this method is
called.

[MAILPOET-3439]
2021-02-22 15:31:56 +03:00
1059f8d145 Remove PHP security check, it doesn't work any more
[MAILPOET-3327]
2021-02-01 11:58:43 +01:00
60f175bcca Fix a warning when running release command
[MAILPOET-3262]
2021-01-04 13:53:19 +01:00
b588737116 Remove WordPress installation from static analysis job
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
8b58167ed9 Remove phpstan configuration for loading WordPress
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
703fbe53a8 Update php version range for code sniffer
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
3845f400b1 Add parameter for php version to static analysis command
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
90eb894b72 Refactor acceptance tests splitting to respect coding style
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
c0c9b11c54 Add workaround for removed codeception/robo-paracept
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
12cc818f8b Fix required after optional parameter in doctrine config factory
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
eec1b9d6a3 Remove stylelint from command watch:css
[MAILPOET-3204]
2020-11-26 09:40:24 +01:00
688755a9bf Handle WP source path config for different environments
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
709ccf3857 Change getting next release version
[PREMIUM-147]
2020-10-19 08:28:28 +02:00
1de06f5aa6 Create and clean phpstan temp automatically
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
b7fde9dd93 Change logic of release next version
Premium should have the same minor version like free when is released.
Free will be released only with a patch version when premium branch
doesn't exist.
We assume that premium isn't released when branch doesn't exist.
[MAILPOET-3152]
2020-10-08 08:58:06 +02:00
21055c077b Update code sniffinch checks
[MAILPOET-3144]
2020-09-29 17:32:23 +02:00
79ea00b0ed Use twentynineteen theme 2020-06-23 15:53:41 +02:00
e9b8dbbbb6 Run data generator even if no arguments specified
[MAILPOET-2893]
2020-06-16 13:18:45 +02:00
8c3153e205 Fix css linter
[MAILPOET-2949]
2020-06-15 16:21:42 +02:00
34775caefd Create new jobs for php and js qa
[MAILPOET-2949]
2020-06-15 16:21:42 +02:00
fb2e1c707e Update phpstan and phpstan-doctrine
[MAILPOET-2945]
2020-05-27 13:40:41 +02:00
f9ea393b07 Refactor function to a separate file
[MAILPOET-2835]
2020-05-06 16:26:42 +02:00
d811b68815 Add ./do commands for watching and locally building Storybook
[MAILPOET-2769]
2020-04-23 14:34:58 +02:00
5ac98cca3d Fix release command
[MAILPOET-2853]
2020-04-14 18:09:19 +02:00
0ceac8921f Add Typescript linting to qa:lint-javascript command
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
a669beed07 Add ESLint rule for Typescript files
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
feec59e581 Fix deprecated usage of join() parameters order
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
26b6f340d1 Require PHP >= 7.0
[MAILPOET-2582]
2020-01-28 20:18:39 +00:00
3bbc8ea2af Convert variable names to camel case in strings
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
wxa
091e17ce0c Add PHPStan to integration tests, fix a class name conflict [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
d44fef7528 Exclude new PHPStan level 6 for now
[MAILPOET-2588]
2019-12-26 14:36:45 +01:00
6015a1370d Refactor simple JS to be main JS tests
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
bfdaf4da1e Move 3rd-party libs to a dedicated directory
[MAILPOET-2545]
2019-11-27 12:38:20 +00:00
1b3a74ace1 Run PHPStan on level 7
[MAILPOET-2535]
2019-11-20 10:24:39 +00:00
wxa
6017008548 Simplify PHPStan command, remove goaop [MAILPOET-2464] 2019-10-30 23:22:48 +00:00
72a6b3d65f Generate Validator metadata for entitites in Robo command
[MAILPOET-2437]
2019-10-24 11:03:09 +01:00
e3176a3edf Check all test support files with PHPStan
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
a2982de3a8 Check all test support files with Code Sniffer
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
02ac03be02 Remove old unused test support files
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
2e836c174e Check acceptance tests with PHPStan, fix discovered problems
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00