1
0
mirror of synced 2025-03-20 15:13:56 +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:
include:
- 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
env: WP_VERSION=latest WP_MULTISITE=0
env: WP_VERSION=4.4 WC_VERSION=3.0.0 WP_MULTISITE=0
- 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
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
deploy:
cleanup: false

View File

@ -28,7 +28,7 @@ compile_pot:
msgfmt resources/pot/retailcrm-es_ES.pot -o src/languages/retailcrm-es_ES.mo
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)
composer install
endif

View File

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