-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from AmpersandHQ/magento-2-4-4-php-8-1
Magento 2.4.4 and PHP 8.1 support
- Loading branch information
Showing
2 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
language: php | ||
php: 7.4.22 | ||
dist: xenial | ||
php: | ||
- 7.4 | ||
- 8.1 | ||
git: | ||
depth: false | ||
|
||
dist: xenial | ||
env: | ||
- TEST_GROUP=latest | ||
- TEST_GROUP=two_three | ||
- TEST_GROUP=magento_latest | ||
- TEST_GROUP=magento_23 | ||
jobs: | ||
exclude: | ||
- php: 8.1 | ||
env: TEST_GROUP=magento_23 | ||
- php: 7.4 | ||
env: TEST_GROUP=magento_latest | ||
|
||
|
||
install: | ||
# Composer install | ||
- composer install --no-interaction | ||
# Do a quick code style check | ||
- ./vendor/bin/php-cs-fixer fix --dry-run --rules=@PSR2 --diff src/ | ||
- PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --dry-run --rules=@PSR2 --diff src/ | ||
# Install magento | ||
- if [[ $TEST_GROUP = two_three ]]; then NAME=disablestockres VERSION=2.3.7-p2 . ./vendor/bin/travis-install-magento.sh; fi | ||
- if [[ $TEST_GROUP = latest ]]; then NAME=disablestockres . ./vendor/bin/travis-install-magento.sh; fi | ||
- if [[ $TEST_GROUP = magento_23 ]]; then NAME=disablestockres VERSION=2.3.7-p2 . ./vendor/bin/travis-install-magento.sh; fi | ||
- if [[ $TEST_GROUP = magento_latest ]]; then NAME=disablestockres . ./vendor/bin/travis-install-magento.sh; fi | ||
# Install this module | ||
- cd vendor/ampersand/travis-vanilla-magento/instances/disablestockres | ||
- export COMPOSER_MEMORY_LIMIT=-1 | ||
|
@@ -25,6 +33,7 @@ install: | |
# compile magento | ||
- php bin/magento setup:di:compile | ||
# Set up test configuration | ||
- magerun2 config:store:set oauth/consumer/enable_integration_as_bearer 1 | ||
- magerun2 config:store:set checkout/options/guest_checkout 1 | ||
- magerun2 config:store:set payment/checkmo/active 1 | ||
- magerun2 integration:create disablestockres [email protected] https://example.com --access-token="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters