File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ commands:
36
36
services:
37
37
phpfpm:
38
38
image: markoshust/magento-php:<< parameters.php-version >>-fpm
39
+ db:
40
+ image: mariadb:10.11
39
41
EOF
40
42
- run :
41
43
name : Setup magento enterprise
@@ -155,13 +157,14 @@ jobs:
155
157
name : Prepare integration test environment
156
158
working_directory : ~/Sites
157
159
command : |
158
- docker cp ../project/dev/tests/install-config-mysql.php $(docker compose ps -q phpfpm):/var/www/html/dev/tests/integration/etc/install-config-mysql.php
160
+ docker cp ../project/.circleci/install-config-mysql.php $(docker compose ps -q phpfpm):/var/www/html/dev/tests/integration/etc/install-config-mysql.php
161
+ bin/magento module:enable --all
159
162
bin/setup-integration-tests
160
163
- run :
161
164
name : Run Integration Tests
162
165
working_directory : ~/Sites
163
166
command : |
164
- bin/dev-test-run integration
167
+ bin/cli bash -c "cd ./ dev/tests/integration && ../../../vendor/bin/phpunit --debug ../../../vendor/algolia/algoliasearch-magento-2/Test/Integration/"
165
168
166
169
workflows :
167
170
magento-build-and-test-workflow :
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+
7
+ return [
8
+ 'db-host ' => 'db ' ,
9
+ 'db-user ' => 'magento ' ,
10
+ 'db-password ' => 'magento ' ,
11
+ 'db-name ' => 'magento_integration_tests ' ,
12
+ 'db-prefix ' => '' ,
13
+ 'backend-frontname ' => 'backend ' ,
14
+ 'search-engine ' => 'opensearch ' ,
15
+ 'opensearch-host ' => 'opensearch ' ,
16
+ 'admin-user ' => \Magento \TestFramework \Bootstrap::ADMIN_NAME ,
17
+ 'admin-password ' => \Magento \TestFramework \Bootstrap::ADMIN_PASSWORD ,
18
+ 'admin-email ' => \Magento \TestFramework \Bootstrap::ADMIN_EMAIL ,
19
+ 'admin-firstname ' => \Magento \TestFramework \Bootstrap::ADMIN_FIRSTNAME ,
20
+ 'admin-lastname ' => \Magento \TestFramework \Bootstrap::ADMIN_LASTNAME ,
21
+ 'amqp-host ' => 'rabbitmq ' ,
22
+ 'amqp-port ' => '5672 ' ,
23
+ 'amqp-user ' => 'magento ' ,
24
+ 'amqp-password ' => 'magento ' ,
25
+ 'consumers-wait-for-messages ' => '0 ' ,
26
+ ];
You can’t perform that action at this time.
0 commit comments