Skip to content

Commit

Permalink
Merge pull request #72 from AmpersandHQ/magento-2-4-4-php-8-1
Browse files Browse the repository at this point in the history
Magento 2.4.4 and PHP 8.1 support
  • Loading branch information
convenient authored Apr 22, 2022
2 parents 32aa70b + f0c443e commit bc99a08
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
25 changes: 17 additions & 8 deletions .travis.yml
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
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "magento2-module",
"require": {
"magento/framework": "*",
"php": "^7.1"
"php": "^7.1|^8.0"
},
"autoload": {
"files": [
Expand Down

0 comments on commit bc99a08

Please sign in to comment.