diff --git a/.travis.yml b/.travis.yml index 4a087dc..46d3ced 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile index 76b5c19..193a0fd 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/tests/bin/install.sh b/tests/bin/install.sh index d3ca88c..9763093 100755 --- a/tests/bin/install.sh +++ b/tests/bin/install.sh @@ -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 -