Skip to content

Commit 6e23d9d

Browse files
Merge branch 'develop' into 1.1-forward
2 parents 326c97e + 630d211 commit 6e23d9d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+89
-848
lines changed

.travis.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@ stages:
2323
jobs:
2424
include:
2525
- stage: static-unit
26-
php: '7.1'
27-
script: ./tests/travis/static-unit.sh;
28-
env:
29-
- TEST_SUITE=static-unit
30-
- script: ./tests/travis/static-unit.sh;
3126
php: '7.2'
27+
script: ./tests/travis/static-unit.sh;
3228
env:
3329
- TEST_SUITE=static-unit
3430
- script: ./tests/travis/static-unit.sh;
@@ -37,10 +33,6 @@ jobs:
3733
- TEST_SUITE=static-unit
3834
- stage: integration
3935
script: ./vendor/bin/phpunit --configuration ./tests/integration;
40-
php: '7.1'
41-
env:
42-
- TEST_SUITE=integration
43-
- script: ./vendor/bin/phpunit --configuration ./tests/integration;
4436
php: '7.2'
4537
env:
4638
- TEST_SUITE=integration
@@ -56,11 +48,6 @@ jobs:
5648
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/images.sh varnish; fi;
5749
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/images.sh elasticsearch; fi;
5850
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/images.sh nginx; fi;
59-
- script:
60-
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/images.sh php 7.1-cli; fi;
61-
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/images.sh php 7.1-fpm; fi;
62-
env:
63-
- TEST_SUITE=build-images
6451
- script:
6552
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/images.sh php 7.2-cli; fi;
6653
- if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/images.sh php 7.2-fpm; fi;
@@ -72,11 +59,7 @@ jobs:
7259
env:
7360
- TEST_SUITE=build-images
7461
- stage: test
75-
php: '7.1'
76-
dist: xenial
77-
env:
78-
- TEST_SUITE=functional
79-
- php: '7.2'
62+
php: '7.2'
8063
dist: xenial
8164
env:
8265
- TEST_SUITE=functional

composer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"AFL-3.0"
99
],
1010
"require": {
11-
"php": "^7.1.3",
11+
"php": "^7.2",
1212
"ext-json": "*",
1313
"composer/composer": "^1.0",
1414
"composer/semver": "^1.0",
@@ -19,12 +19,15 @@
1919
"symfony/yaml": "^3.3||^4.0"
2020
},
2121
"require-dev": {
22+
"codeception/codeception": "^4.1",
23+
"codeception/module-asserts": "^1.2",
24+
"codeception/module-db": "^1.0",
25+
"codeception/module-phpbrowser": "^1.0",
26+
"consolidation/robo": "^1.2",
2227
"phpmd/phpmd": "@stable",
2328
"phpstan/phpstan": "^0.11",
24-
"phpunit/phpunit": "^7.2",
25-
"squizlabs/php_codesniffer": "^3.0",
26-
"codeception/codeception": "^2.5.3",
27-
"consolidation/robo": "^1.2"
29+
"phpunit/phpunit": "^8.5",
30+
"squizlabs/php_codesniffer": "^3.0"
2831
},
2932
"bin": [
3033
"bin/ece-docker"

dist/bin/magento-docker

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,21 @@ USAGE="Magento Cloud Docker
1919
flush-redis clears redis cache
2020
flush-varnish clears varnish cache
2121
ece-db access to Database
22+
php 7.1 run a command in a PHP 7.1 container
23+
php 7.2 run a command in a PHP 7.2 container
24+
php 7.3 run a command in a PHP 7.3 container
25+
php 7.4 run a command in a PHP 7.4 container
2226
2327
\033[33mOptions:\033[0m
2428
-h show this help text\n"
2529

26-
if [ ${#@} -ne 0 ] && [ "${@#"-h"}" = "" ]; then
27-
printf "$USAGE"
28-
exit 0;
30+
if [ ${#@} -ne 0 ]; then
31+
for arg in "$@"; do
32+
if [ "${arg#"-h"}" = "" ]; then
33+
printf "$USAGE"
34+
exit 0;
35+
fi
36+
done
2937
fi;
3038

3139
case "$1" in
@@ -74,6 +82,11 @@ case "$1" in
7482
ece-db)
7583
docker-compose exec db sh -c 'mysql -u $MYSQL_USER -p$MYSQL_PASSWORD $MYSQL_DATABASE "$@"'
7684
;;
85+
php)
86+
version="$2"
87+
shift 2
88+
docker run --rm -it -e "MAGENTO_ROOT=/app" -v "$(pwd)":/app -v ~/.composer/cache:/root/.composer/cache "magento/magento-cloud-docker-php:${version}-cli" "$@"
89+
;;
7790
*)
7891
printf "$USAGE"
7992
exit 0;

images/nginx/1.9/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ XDEBUG_UPSTREAM_FILE="/etc/nginx/conf.d/xdebug/upstream.conf"
1414
[ ! -z "${MAGENTO_RUN_MODE}" ] && sed -i "s/!MAGENTO_RUN_MODE!/${MAGENTO_RUN_MODE}/" $VHOST_FILE
1515
[ ! -z "${MFTF_UTILS}" ] && sed -i "s/!MFTF_UTILS!/${MFTF_UTILS}/" $VHOST_FILE
1616
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" $VHOST_FILE
17+
[ ! -z "${WITH_XDEBUG}" ] && sed -i "s/!WITH_XDEBUG!/${WITH_XDEBUG}/" $VHOST_FILE
1718
[ "${WITH_XDEBUG}" == "1" ] && sed -i "s/#include_xdebug_upstream/include/" $NGINX_FILE
1819

1920
# Check if the nginx syntax is fine, then launch.

images/nginx/1.9/etc/vhost.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ server {
1414
set $MAGE_ROOT !MAGENTO_ROOT!; # Variable: MAGENTO_ROOT
1515
set $MAGE_MODE !MAGENTO_RUN_MODE!; # Variable: MAGENTO_RUN_MODE
1616
set $MFTF_UTILS !MFTF_UTILS!; # Variable: MFTF_UTILS
17-
set $WITH_XDEBUG !$WITH_XDEBUG!; # Variable: WITH_XDEBUG
17+
set $WITH_XDEBUG !WITH_XDEBUG!; # Variable: WITH_XDEBUG
1818

1919
set $my_fastcgi_pass "fastcgi_backend";
2020
if ($cookie_XDEBUG_SESSION) {

images/php/7.1-cli/Dockerfile

Lines changed: 0 additions & 226 deletions
This file was deleted.

0 commit comments

Comments
 (0)