@@ -25,17 +25,22 @@ shared: &shared
25
25
name : Install the extension
26
26
command : |
27
27
cd ~/magento_directory
28
+ sudo service elasticsearch start # for some reasons has to be launched with the step
29
+ sleep 10
30
+ php -dmemory_limit=-1 bin/magento module:disable Magento_WebapiAsync Magento_Amqp Magento_MysqlMq Magento_MessageQueue
28
31
php -dmemory_limit=-1 bin/magento module:enable Algolia_AlgoliaSearch
29
32
php -dmemory_limit=-1 bin/magento setup:upgrade
30
33
31
34
- run :
32
35
name : Get the right tests config for DB and administration
33
36
command : |
37
+ rm -rf ~/magento_directory/vendor/dotmailer/dotmailer-magento2-extension/Test ~/magento_directory/vendor/dotmailer/dotmailer-magento2-extension-chat/Test
34
38
mv ~/build_directory/algoliasearch-magento-2/dev/tests/install-config-mysql.php ~/magento_directory/dev/tests/integration/etc/install-config-mysql.php
35
39
36
40
- run :
37
41
name : Before setup
38
42
command : |
43
+ echo 'memory_limit = 256M' | sudo tee /usr/local/etc/php/php.ini
39
44
wget https://alg.li/algolia-keys && chmod +x algolia-keys
40
45
41
46
- run :
@@ -46,22 +51,24 @@ shared: &shared
46
51
export CI_PROJ_USERNAME=$CIRCLE_PROJECT_USERNAME
47
52
export CI_PROJ_REPONAME=$CIRCLE_PROJECT_REPONAME
48
53
eval $(~/build_directory/algoliasearch-magento-2/algolia-keys export)
49
- php -dmemory_limit=-1 ../../../vendor/bin/phpunit ../../../vendor/algolia/algoliasearch-magento-2/Test
54
+ sudo service elasticsearch start # for some reasons has to be launched with the step
55
+ sleep 10
56
+ php -dmemory_limit=-1 ../../../vendor/bin/phpunit --debug ../../../vendor/algolia/algoliasearch-magento-2/Test
50
57
51
58
jobs :
52
- " magento-2.2 " :
59
+ " magento-2.3 " :
53
60
<< : *shared
54
61
docker :
55
- - image : algolia/magento2-circleci:v2 -2.2.8
62
+ - image : algolia/magento2-circleci:v3 -2.3.5-p2
56
63
57
- " magento-2.3 " :
64
+ " magento-2.4 " :
58
65
<< : *shared
59
66
docker :
60
- - image : algolia/magento2-circleci:v2 -2.3 .0
67
+ - image : algolia/magento2-circleci:v3 -2.4 .0
61
68
62
69
" quality-tools " :
63
70
docker :
64
- - image : algolia/magento2-circleci:v2 -2.3.0
71
+ - image : algolia/magento2-circleci:v3 -2.3.5-p2
65
72
working_directory : ~/build_directory/algoliasearch-magento-2
66
73
steps :
67
74
- checkout
71
78
sudo chown circleci:circleci ~/.composer/
72
79
- restore_cache :
73
80
keys :
74
- - composer-v3 -{{ checksum "composer.json" }}
75
- - composer-v3 -
81
+ - composer-v4 -{{ checksum "composer.json" }}
82
+ - composer-v4 -
76
83
77
84
- run :
78
85
name : Prepare environment
89
96
cd ~/magento_directory
90
97
composer dump-autoload
91
98
- save_cache :
92
- key : composer-v3 -{{ checksum "composer.json" }}
99
+ key : composer-v4 -{{ checksum "composer.json" }}
93
100
paths :
94
101
- vendor
95
102
- run :
@@ -101,6 +108,6 @@ workflows:
101
108
version : 2
102
109
build :
103
110
jobs :
104
- - " magento-2.2"
105
111
- " magento-2.3"
112
+ - " magento-2.4"
106
113
- " quality-tools"
0 commit comments