From 222a90d75549e692adaf3759e890259368e91071 Mon Sep 17 00:00:00 2001 From: Dima Uryvskiy Date: Thu, 19 Nov 2020 10:51:49 +0300 Subject: [PATCH] Fix problem with composer. Use composer version 1.10.17 --- .travis.yml | 8 ++++---- tests/bin/install.sh | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9d0aa07..dc95459 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,10 +21,10 @@ before_script: env: global: - - DB_NAME=wc_retailcrm_test - - DB_USER=root - - DB_PASS='' - - DB_HOST=localhost + - DB_NAME=wc_retailcrm_test + - DB_USER=root + - DB_PASS='' + - DB_HOST=localhost script: make test diff --git a/tests/bin/install.sh b/tests/bin/install.sh index 224b65f..c26fd04 100644 --- a/tests/bin/install.sh +++ b/tests/bin/install.sh @@ -75,6 +75,7 @@ install_woocommerce() { cd /tmp git clone https://github.com/woocommerce/woocommerce.git cd woocommerce + php -r "copy('https://getcomposer.org/download/1.10.17/composer.phar', 'composer.phar');" if [[ ! $WC_VERSION == 'latest' ]]; then # If we use php 5.3, we have problem with warning: CRLF will be replaced by LF in tests/legacy/unit-tests/importer/sample_update_product.csv. @@ -87,14 +88,14 @@ install_woocommerce() { version=($(echo $WC_VERSION | tr "." "\n")) if [[ ${version[0]} -ge 3 && ${version[1]} -ge 7 ]]; then - composer install -# npm install + php composer.phar install --ignore-platform-reqs fi fi if [[ $WC_VERSION == 'latest' ]]; then - composer install -# npm install + php composer.phar install --ignore-platform-reqs + php composer.phar dump-autoload + php composer.phar update fi cd -