74 Commits

Author SHA1 Message Date
Anton Medvedev
0b15d174b9 Update composer deps 2021-09-24 00:08:19 +02:00
Sacharski Bartłomiej
d3b6eaf9fe
Added support for code coverage in E2E tests (#2533)
The E2E docker-compose stack has been modified to include code
coverage for all scripts that are kept in /project and are not
in the exclusion list.

The start command for `deployer` container has been replaced
with a `start-e2e-test.sh` script, which will execute E2E tests,
generate a Clover report and then return the exit code of E2E test
process to make sure that CI is aware of the test result.

Whole idea for collecting E2E coverage has been inspired by the
[this][1] article. All of scripts in `deployer` container will
now start with additional wrapper-like PHP code, which checks
if the `PHP_CCOV_START_FILE` variable is present. If not,
then nothing happens, but if the variable points to a PHP file,
then that file is being included.

The `docker-compose.yml` file has `PHP_CCOV_START_FILE` configured
to point to a file, which sets up code coverage, that starts counting
which instructions in `/project` directory have been called. Once
`php` interpreter starts shutting down, the coverage report is being
dumped into temporary files.

Once all tests have been processed, a script for merging partial
coverage reports is executed and finally a Clover code coverage file
is stored in the path defined in the `PHP_CCOV_OUTPUT_FILE` env var.

[1]: https://tarunlalwani.com/post/php-code-coverage-web-selenium/
2021-05-02 15:15:19 +02:00
Anton Medvedev
387b4c1d51
Update composer dependencies (#2453)
As well rename test dir to tests, as Pest does not support dir without s on the end.
Also, remove PHP requirement from composer.json as we already have check-in bin/dep and it's better to have the check only in one place (now they already out of sync).
2021-03-12 13:56:16 +03:00
Fabian Blechschmidt
f5c9a92b1d
Feature/2423 shopware order modules (#2425)
* #2423 shopware: task sw:plugin:activate:all runs migration script in wrong order

- add dependency for polyfill (to use str_ends_with)
- marcj/topsort (for sorting the shopware modules)

* #2423 shopware: task sw:plugin:activate:all runs migration script in wrong order

- get the plugin list
- read the composer names and dependencies from composer.lock
- order by dependencies
- use sorted list for activation and migration

* #2423 shopware: task sw:plugin:activate:all runs migration script in wrong order

Update changelog

* #2423 shopware: task sw:plugin:activate:all runs migration script in wrong order

do not update doc, but remove require autoload.php
2021-02-23 08:50:46 +01:00
Anton Medvedev
12b99c6d0a Add Pimple as a component 2020-11-20 22:54:08 +01:00
Anton Medvedev
7fdfcaee55 Add schema.json 2020-11-15 22:30:42 +01:00
Markus Staab
55177c5b18
Fix fail() signature (#2261)
* added phpstan callable types

* Update src/Task/Task.php

* regenerated docs

* Update CHANGELOG.md

* update phpstan

* Restore Collection.php

* Restore Master.php

* Restore helpers.php

* Restore Task.php

* Update functions.php

* Update functions.php

* Update CHANGELOG.md

* regenerate docs
2020-11-02 12:13:57 +01:00
Markus Staab
de0813a5f9
fix phpstan level 1 warnings (#2230)
* fix phpstan level 1 warnings

* Update CHANGELOG.md

* composer update
2020-10-26 17:36:53 +01:00
Markus Staab
7bb908608f
Add phpstan (#2218)
* added phpstan static analysis via GitHub Actions

* Update CHANGELOG.md

* fix bad merge

* Update phpstan.yml

Co-authored-by: Anton Medvedev <anton@medv.io>
2020-10-25 11:21:07 +03:00
Anton Medvedev
8e8c0bc2dc Add yaml syntax 2020-10-15 22:12:24 +02:00
Anton Medvedev
54748566a9 Improve tests 2020-10-09 00:15:28 +02:00
Sacharski Bartłomiej
89bde7059c
[issue-2187] Type declarations for src/Configuration (#2188)
Refactored the code in `src/Configuration` to include type declarations
for method arguments and returned values.

To make it easier to track what's left to do and to have a tool that
prevents "regressions" in the future, PHP_CodeSniffer and Slevomat
Coding Standard have been added.

Next, a `phpcs.xml.dist` file has been created and configured to
enforce type hints for methods. For the time being, only files in
the src/Configuration directory are now being watched.

To make it simpler to execute the checks, `lint` script has been
added to `composer.json` to allow running checks with `composer lint`.
2020-10-07 20:48:33 +02:00
Anton Medvedev
35ced977f9 v7 2020-09-29 22:56:35 +02:00
Andreas Möller
6b42f488af
Enhancement: Validate composer.json and composer.lock (#2149)
* Enhancement: Validate composer.json and composer.lock

* Fix: Update composer.lock
2020-09-03 16:19:22 +03:00
Anton Medvedev
8293eb931e wip 2020-07-26 22:35:08 +03:00
Anton Medvedev
29a643b623 v7 2020-05-16 18:02:17 +03:00
Anton Medvedev
86c7b3848f Fix incompatibility with Symfony 5 2019-12-15 21:11:39 +07:00
Anton Medvedev
9fd858fbd6 Release v6.7.0 2019-12-14 17:38:03 +07:00
Ganon
9ce3f79c2f Add Symfony 5 support (#1956) 2019-12-06 15:55:19 +07:00
Anton Medvedev
99423f0b6e Fix build script and update composer 2018-04-20 19:23:19 +07:00
Anton Medvedev
ab8a2c49e7 Update composer 2018-02-27 23:34:53 +07:00
xakzona
5f2659a0f0 Update symfony package dependencies to 4.0 (#1559)
* Update symfony package dependencies to 4.0

* Update changelog

* Update changelog 2
2018-02-27 23:25:32 +07:00
Dariusz Rumiński
192078a540 Upgrade PHPUnit (#1417)
* Upgrade PHPUnit

* Update ScriptManagerTest.php

* Update InitializerTest.php

* Update GroupTaskTest.php

* Update HostSelectorTest.php

* Update DeployerTest.php
2018-01-02 18:13:28 +07:00
Anton Medvedev
a22faa6806 Add platform config 2017-12-22 15:28:40 +07:00
Anton Medvedev
f9eba9ad55 composer update 2017-12-22 13:51:04 +07:00
Anton Medvedev
acaf0b0861 Composer update 2017-12-18 18:15:52 +07:00
Anton Medvedev
d7cc264086 Update phpunit 2017-09-04 20:17:14 +07:00
Anton Medvedev
057d60ef51 Update deployer/phar-update version 2017-07-03 13:59:22 +07:00
Anton Medvedev
f7d181f0ab Fix bug with self-update 2017-06-23 10:32:07 +07:00
Anton Medvedev
732176373d Add deployer/phar-update as dependency 2017-03-25 15:51:49 +07:00
Anton Medvedev
e5d499a92f Add logger 2017-03-23 18:40:45 +07:00
Anton Medvedev
6afdc384f2 Composer update 2017-03-19 23:49:15 +07:00
Anton Medvedev
dafc57cdd0 Update Symfony min version to 2.7 2017-03-16 15:40:35 +07:00
Anton Medvedev
5745a714be Start refactoring tests 2017-03-16 11:26:43 +07:00
Anton Medvedev
f8a13c1308 Composer update 2017-03-16 11:07:45 +07:00
Lucas Michot
6bef65439f Sort dependencies. 2017-02-16 08:50:44 +01:00
Anton Medvedev
b76b25ded6 Update to phar-update v2.0 2017-01-27 13:23:36 +07:00
Anton Medvedev
acf322238a Update dependencies
Do composer update and refactor PHPUnit namespaces.
2017-01-27 11:06:12 +07:00
Anton Medvedev
47d2df0190 Composer update. 2016-11-13 15:38:57 +07:00
oanhnn
0d38d7dd5f Allow test failure on PHP 7.1 and update phpseclib 2016-09-23 09:24:43 +07:00
Anton Medvedev
702c9b082f Add logger. 2016-08-05 11:37:30 +03:00
Anton Medvedev
aa54eb7ce3 Upgrade to PHPUnit 5.4 2016-08-04 23:41:51 +03:00
Anton Medvedev
d99299d76c Add DI container and EventDispatcher. 2016-08-04 23:19:24 +03:00
Anton Medvedev
7a28ef983d Update deps. 2016-08-04 22:16:57 +03:00
Oanh Nguyen
bc4acaf49e Updated PHPSecLib from 2.0.1 to 2.0.2 (#712) 2016-07-26 10:01:41 +07:00
Anton Medvedev
5fa083c072 Use deployer/phar-update instead of kherge/amend. Upgrade composer.lock dependencies. Use start instead of run in parallel executor process. 2016-04-07 15:16:58 +07:00
Anton Medvedev
5102f5f14e Update composer.lock 2016-03-19 23:15:12 +07:00
Anton Medvedev
825cddc2e5 Drop support for PHP 5.4. 2016-03-19 21:40:40 +07:00
Vitalii Piskovyi
aeb3c42f94 symfony 3 2016-03-13 17:36:18 +01:00
Anton Medvedev
990743901e Update composer.lock 2016-01-11 13:41:05 +07:00