Skip to content

Commit 122d129

Browse files
add PHP orb and update Magento setup steps
1 parent 31524e9 commit 122d129

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.circleci/config.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version: 2.1
22

3+
orbs:
4+
php: circleci/[email protected]
5+
36
executors:
47
magento-executor:
58
machine:
@@ -16,13 +19,23 @@ jobs:
1619
type: string
1720
steps:
1821
- checkout
22+
- php/install_composer
23+
- run:
24+
name: Configure composer authentication
25+
command: |
26+
composer config --global http-basic.repo.magento.com ${MAGENTO_AUTH_USERNAME} ${MAGENTO_AUTH_PASSWORD}
1927
- run:
2028
name: Setup magento enterprise
2129
command: |
30+
mkdir ~/Sites
31+
cd ~/Sites
2232
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
23-
bin/download enterprise <<parameters.magento-version>>
24-
bin/setup magento-enterprise.test
25-
33+
bin/start --no-dev
34+
bin/setup-composer-auth
35+
bin/cli git clone [email protected]:magento/magento2.git .
36+
bin/cli git checkout << parameters.magento-version >>>-develop
37+
bin/composer install
38+
bin/composer require algolia/algoliasearch-client-php "^4.0"
2639
2740
workflows:
2841
magento-build-and-test:

0 commit comments

Comments
 (0)