Skip to content

Commit ee8b1e5

Browse files
Update configs and creds
1 parent cc7a33f commit ee8b1e5

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ commands:
3636
services:
3737
phpfpm:
3838
image: markoshust/magento-php:<< parameters.php-version >>-fpm
39+
db:
40+
image: mariadb:10.11
3941
EOF
4042
- run:
4143
name: Setup magento enterprise
@@ -155,13 +157,14 @@ jobs:
155157
name: Prepare integration test environment
156158
working_directory: ~/Sites
157159
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
159162
bin/setup-integration-tests
160163
- run:
161164
name: Run Integration Tests
162165
working_directory: ~/Sites
163166
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/"
165168
166169
workflows:
167170
magento-build-and-test-workflow:

.circleci/install-config-mysql.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
];

0 commit comments

Comments
 (0)