1
0
mirror of synced 2025-03-21 07:33:52 +03:00
This commit is contained in:
Akolzin Dmitry 2020-02-26 17:23:12 +03:00
parent 7d0c1ac904
commit 2142e2a01f
3 changed files with 23 additions and 6 deletions

View File

@ -18,13 +18,29 @@ script: make tests
jobs: jobs:
include: include:
- php: 5.6 - php: 5.6
env: WP_VERSION=latest WP_MULTISITE=0 env: WP_VERSION=4.4 WC_VERSION=3.0.0 WP_MULTISITE=0
- php: 7.0 - php: 7.0
env: WP_VERSION=latest WP_MULTISITE=0 env: WP_VERSION=4.4 WC_VERSION=3.0.0 WP_MULTISITE=0
- php: 7.1 - php: 7.1
env: WP_VERSION=latest WP_MULTISITE=0 env: WP_VERSION=4.4 WC_VERSION=3.0.0 WP_MULTISITE=0
- php: 7.2 - php: 7.2
env: WP_VERSION=latest WP_MULTISITE=0 USE_COMPOSER=1 env: WP_VERSION=4.4 WC_VERSION=3.0.0 WP_MULTISITE=0 USE_COMPOSER=1
- php: 5.6
env: WP_VERSION=4.4 WC_VERSION=3.1.0 WP_MULTISITE=0
- php: 7.0
env: WP_VERSION=4.4 WC_VERSION=3.1.0 WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=4.4 WC_VERSION=3.1.0 WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=4.4 WC_VERSION=3.1.0 WP_MULTISITE=0 USE_COMPOSER=1
- php: 5.6
env: WP_VERSION=4.4 WC_VERSION=3.2.0 WP_MULTISITE=0
- php: 7.0
env: WP_VERSION=4.4 WC_VERSION=3.2.0 WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=4.4 WC_VERSION=3.2.0 WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=4.4 WC_VERSION=3.2.0 WP_MULTISITE=0 USE_COMPOSER=1
- stage: deploy - stage: deploy
deploy: deploy:
cleanup: false cleanup: false

View File

@ -28,7 +28,7 @@ compile_pot:
msgfmt resources/pot/retailcrm-es_ES.pot -o src/languages/retailcrm-es_ES.mo msgfmt resources/pot/retailcrm-es_ES.pot -o src/languages/retailcrm-es_ES.mo
install: install:
bash tests/bin/install.sh wc_retailcrm_test root '' localhost $(WP_VERSION) bash tests/bin/install.sh wc_retailcrm_test root '' localhost $(WP_VERSION) $(WC_VERSION)
ifeq ($(USE_COMPOSER),1) ifeq ($(USE_COMPOSER),1)
composer install composer install
endif endif

View File

@ -12,6 +12,7 @@ DB_PASS=$3
DB_HOST=${4-localhost} DB_HOST=${4-localhost}
WP_VERSION=${5-latest} WP_VERSION=${5-latest}
SKIP_DB_CREATE=${6-false} SKIP_DB_CREATE=${6-false}
WC_VERSION=${7-3.9.0}
WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/wordpress-tests-lib} WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/wordpress-tests-lib}
WP_CORE_DIR=${WP_CORE_DIR-/tmp/wordpress/} WP_CORE_DIR=${WP_CORE_DIR-/tmp/wordpress/}
@ -72,7 +73,7 @@ install_woocommerce() {
cd /tmp cd /tmp
git clone https://github.com/woocommerce/woocommerce.git git clone https://github.com/woocommerce/woocommerce.git
cd woocommerce cd woocommerce
git checkout master git checkout $WC_VERSION
composer install composer install
npm install npm install
cd - cd -