Commit Graph

267 Commits

Author SHA1 Message Date
Rostislav Wolny
f98167a30c Add confirmation before running integration tests on dev site
[MAILPOET-3755]
2021-09-22 12:03:47 +02:00
Rostislav Wolny
dac4fb5dd0 Replace clean-webpack-plugin with initial cleanup in Robofile
We need to share the same output path (assets/build/js) in more configs
in order to generate a common manifest.json file.
The cleanup plugin and also build-in output.clean setting do the cleanup on emit
and that causes that they delete files we want to keep.
Using different output paths solves the problem with cleanup but it causes that we generate a bunch of manifest.json files
instead of one.
As simplest workaround I chose cleaning the output directory before we trigger the Webpack build in the Robofile.
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Pavel Dohnal
4ed3b3e5ba Display the full call stack in the error output
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Rostislav Wolny
e6823f137e Update css and cross-env packages
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
Rostislav Wolny
ea695ad5d1 Update webpack cli
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
Rostislav Wolny
a87ae60030 Make sure newsletter tests don't hang
On newer node JS our tests remained hanging.
--exit flag forces proces to exit after tests are finished
[MAILPOET-3673]
2021-07-02 07:28:41 +02:00
Rostislav Wolny
340653916c Refactor Robo t:newsletter-editor using collection
[MAILPOET-3673]
2021-07-02 07:28:41 +02:00
Pavel Dohnal
876c92ef0b Remove ./do watch task
[MAILPOET-3500]
2021-06-28 09:21:12 +02:00
Pavel Dohnal
16894fb81c Add typescript files to watch task
[MAILPOET-3500]
2021-06-28 09:21:12 +02:00
Pavel Dohnal
b48300d7b2 Add more groups for acceptance tests 2021-05-17 12:28:35 +02:00
Rostislav Wolny
81fc441d4f Add parallel execution for data generator
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
388db464bf Generate validation metadata also for doctrine proxies
[MAILPOET-3604]
2021-05-06 14:06:26 +02:00
Rostislav Wolny
a46595cfea Merge doctrine proxies and metadata generate commands into one
[MAILPOET-3604]
2021-05-06 14:06:26 +02:00
Rostislav Wolny
44f1269916 Change plugins download directory
[MAILPOET-3482]
2021-04-26 13:47:41 +02:00
Rostislav Wolny
ff806859cb Add robo command for downloading WooCommerce
[MAILPOET-3482]
2021-04-26 13:47:41 +02:00
Rostislav Wolny
edf5be833d Add Robo task for downloading WooCommerce Subscription plugin
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rodrigo Primo
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
Rodrigo Primo
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
Pavel Dohnal
1059f8d145 Remove PHP security check, it doesn't work any more
[MAILPOET-3327]
2021-02-01 11:58:43 +01:00
Pavel Dohnal
60f175bcca Fix a warning when running release command
[MAILPOET-3262]
2021-01-04 13:53:19 +01:00
Rostislav Wolny
b588737116 Remove WordPress installation from static analysis job
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
Rostislav Wolny
8b58167ed9 Remove phpstan configuration for loading WordPress
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
Rostislav Wolny
703fbe53a8 Update php version range for code sniffer
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
3845f400b1 Add parameter for php version to static analysis command
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
90eb894b72 Refactor acceptance tests splitting to respect coding style
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
c0c9b11c54 Add workaround for removed codeception/robo-paracept
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
12cc818f8b Fix required after optional parameter in doctrine config factory
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Jan Lysý
eec1b9d6a3 Remove stylelint from command watch:css
[MAILPOET-3204]
2020-11-26 09:40:24 +01:00
Rostislav Wolny
688755a9bf Handle WP source path config for different environments
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
Jan Lysý
709ccf3857 Change getting next release version
[PREMIUM-147]
2020-10-19 08:28:28 +02:00
Rostislav Wolny
1de06f5aa6 Create and clean phpstan temp automatically
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
Jan Lysý
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
Pavel Dohnal
21055c077b Update code sniffinch checks
[MAILPOET-3144]
2020-09-29 17:32:23 +02:00
Amine Ben hammou
79ea00b0ed Use twentynineteen theme 2020-06-23 15:53:41 +02:00
Pavel Dohnal
e9b8dbbbb6 Run data generator even if no arguments specified
[MAILPOET-2893]
2020-06-16 13:18:45 +02:00
Pavel Dohnal
8c3153e205 Fix css linter
[MAILPOET-2949]
2020-06-15 16:21:42 +02:00
Pavel Dohnal
34775caefd Create new jobs for php and js qa
[MAILPOET-2949]
2020-06-15 16:21:42 +02:00
Jan Jakeš
fb2e1c707e Update phpstan and phpstan-doctrine
[MAILPOET-2945]
2020-05-27 13:40:41 +02:00
Pavel Dohnal
f9ea393b07 Refactor function to a separate file
[MAILPOET-2835]
2020-05-06 16:26:42 +02:00
Ján Mikláš
d811b68815 Add ./do commands for watching and locally building Storybook
[MAILPOET-2769]
2020-04-23 14:34:58 +02:00
Ján Mikláš
5ac98cca3d Fix release command
[MAILPOET-2853]
2020-04-14 18:09:19 +02:00
Amine Ben hammou
0ceac8921f Add Typescript linting to qa:lint-javascript command
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
Amine Ben hammou
a669beed07 Add ESLint rule for Typescript files
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
Jan Jakeš
feec59e581 Fix deprecated usage of join() parameters order
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
26b6f340d1 Require PHP >= 7.0
[MAILPOET-2582]
2020-01-28 20:18:39 +00:00
Jan Jakeš
3bbc8ea2af Convert variable names to camel case in strings
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
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
Amine Ben hammou
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
Jan Jakeš
d44fef7528 Exclude new PHPStan level 6 for now
[MAILPOET-2588]
2019-12-26 14:36:45 +01:00