-
Notifications
You must be signed in to change notification settings - Fork 63
/
composer.json
70 lines (70 loc) · 3.34 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"name": "ampersand/magento2-disable-stock-reservation",
"description": "This module disables the inventory reservation logic introduced as part of MSI in Magento 2.3.3",
"type": "magento2-module",
"require": {
"magento/framework": ">=103",
"php": "^7.1|^8.0"
},
"autoload": {
"files": [
"src/registration.php"
],
"psr-4": {
"Ampersand\\DisableStockReservation\\": "src"
}
},
"config": {
"allow-plugins": {
"magento/*": true
},
"process-timeout": 1200
},
"repositories": [
{
"type": "composer",
"url": "https://repo-magento-mirror.fooman.co.nz/"
}
],
"require-dev": {
"codeception/codeception": "^4.1.1",
"codeception/module-phpbrowser": "^1.0.0",
"codeception/module-asserts": "^1.1.0",
"codeception/module-db": "^1.0.1",
"ampersand/magento-docker-test-instance": "^0.1",
"codeception/module-rest": "^1.2.0",
"friendsofphp/php-cs-fixer": "^2.16",
"magento/magento-coding-standard": "<16",
"tddwizard/magento2-fixtures": "^1.1"
},
"scripts": {
"docker-install-magento": [
"CURRENT_EXTENSION=\".\" FULL_INSTALL=1 COMPOSER_REQUIRE_EXTRA='tddwizard/magento2-fixtures' TWOFACTOR_ENABLED=1 UNIT_TESTS_PATH='dev/MagentoTests/Unit' INTEGRATION_TESTS_PATH='dev/MagentoTests/Integration' vendor/bin/mtest-make $TEST_GROUP",
"vendor/bin/mtest \"./vendor/ampersand/magento2-disable-stock-reservation/dev/MagentoTests/patches/apply.sh $TEST_GROUP\"",
"vendor/bin/mtest 'php bin/magento setup:db-declaration:generate-whitelist --module-name=Ampersand_DisableStockReservation'"
],
"docker-configure-magento": [
"vendor/bin/mtest 'vendor/bin/n98-magerun2 config:store:set checkout/options/guest_checkout 1'",
"vendor/bin/mtest 'vendor/bin/n98-magerun2 config:store:set payment/checkmo/active 1'",
"vendor/bin/mtest 'vendor/bin/n98-magerun2 config:store:set oauth/consumer/enable_integration_as_bearer 1'",
"vendor/bin/mtest 'vendor/bin/n98-magerun2 integration:create disablestockres [email protected] https://example.com --access-token=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'",
"vendor/bin/mtest 'php bin/magento cache:flush'",
"vendor/bin/mtest 'php bin/magento --version'"
],
"docker-run-codeception": [
"TEST_GROUP=$TEST_GROUP URL=\"http://0.0.0.0:1234/\" MYSQL_USER=\"root\" MYSQL_HOST=\"0.0.0.0\" MYSQL_DB=\"magento\" MYSQL_PORT=\"1235\" ./dev/run-codeception.sh"
],
"docker-run-unit-tests": [
"vendor/bin/mtest 'vendor/bin/phpunit -c /var/www/html/dev/tests/unit/phpunit.xml.dist --testsuite Unit --debug'"
],
"docker-run-integration-tests": [
"vendor/bin/mtest 'vendor/bin/phpunit -c /var/www/html/dev/tests/integration/phpunit.xml.dist --testsuite Integration --debug '"
],
"post-install-cmd": [
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/)"
],
"post-update-cmd": [
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/)"
]
}
}