From dcbc783a5afef040c37129daa67556cda2fc8475 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 24 Mar 2020 14:51:09 -0400 Subject: [PATCH 1/2] Automated Testing: Try composer non-interactive flag for Travis --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8798f87bb55da5..be6a34b7f4bdad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -152,12 +152,12 @@ jobs: - npm run test-unit:native -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache" - name: PHP unit tests - env: INSTALL_COMPOSER=true + env: INSTALL_COMPOSER=true COMPOSER_NO_INTERACTION=1 script: - npm run test-php && npm run test-unit-php-multisite - name: PHP unit tests (PHP 5.6) - env: INSTALL_COMPOSER=true LOCAL_PHP=5.6-fpm + env: INSTALL_COMPOSER=true LOCAL_PHP=5.6-fpm COMPOSER_NO_INTERACTION=1 script: - npm run test-php && npm run test-unit-php-multisite From 2e1fd1beef00c15ab8fed2848ea2befb9b2f63bc Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 24 Mar 2020 16:56:45 -0400 Subject: [PATCH 2/2] Automated Testing: Pass no-interaction as install flag --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index be6a34b7f4bdad..819f3403cd0c30 100644 --- a/.travis.yml +++ b/.travis.yml @@ -91,7 +91,7 @@ install: fi - | if [[ "$INSTALL_COMPOSER" = "true" ]]; then - npm run env docker-run -- php composer install + npm run env docker-run -- php composer install --no-interaction fi - | if [[ "$E2E_ROLE" = "author" ]]; then @@ -152,12 +152,12 @@ jobs: - npm run test-unit:native -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache" - name: PHP unit tests - env: INSTALL_COMPOSER=true COMPOSER_NO_INTERACTION=1 + env: INSTALL_COMPOSER=true script: - npm run test-php && npm run test-unit-php-multisite - name: PHP unit tests (PHP 5.6) - env: INSTALL_COMPOSER=true LOCAL_PHP=5.6-fpm COMPOSER_NO_INTERACTION=1 + env: INSTALL_COMPOSER=true LOCAL_PHP=5.6-fpm script: - npm run test-php && npm run test-unit-php-multisite