Select Git revision
HookablePuginDependant.php
-
Grzegorz Rola authoredGrzegorz Rola authored
integration.yml 5.02 KiB
.template: &job-test-template
stage: tests
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
artifacts:
reports:
junit: tmp_artifacts/report.xml
interruptible: true
.template: &job-test-integration-template
<<: *job-test-template
tags:
- integration
dependencies:
- prepare npm assets
- prepare translations
services:
- mysql:5.6
before_script:
- export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
- echo ${WPDESK_CI_VERSION}
- ls -l
- php --version
- cat /tmp/wordpress-develop/src/wp-includes/version.php
- cat /tmp/woocommerce/woocommerce.php
- ln -s $CI_PROJECT_DIR /tmp/wordpress-develop/src/wp-content/plugins/$CI_PROJECT_NAME
script:
- vendor/bin/phpunit -d memory_limit=-1 --configuration phpunit-integration.xml --coverage-text --colors=never --log-junit tmp_artifacts/report.xml
only:
refs:
- master
except:
variables:
- $DISABLE_COVERAGE
.template: &job-test-integration-template-fast
<<: *job-test-integration-template
script:
- vendor/bin/phpunit -d memory_limit=-1 --configuration phpunit-integration.xml --no-coverage --log-junit tmp_artifacts/report.xml
except:
- tags
only:
.template: &integration_test_lastest
<<: *job-test-integration-template-fast
image: wpdesknet/phpunit-woocommerce:0-0
except:
variables:
- $DISABLE_INTEGRATION_TESTS
.template: &integration_test_lastest_coverage
<<: *job-test-integration-template
image: wpdesknet/phpunit-woocommerce:0-0
except:
variables:
- $DISABLE_INTEGRATION_TESTS
- $DISABLE_COVERAGE
.template: &integration_test_php7-1_wc-1
<<: *job-test-integration-template-fast
image: wpdesknet/phpunit-woocommerce:1-1
except:
variables:
- $DISABLE_INTEGRATION_TESTS
.template: &integration_test_php7_wc-2
<<: *job-test-integration-template-fast
image: wpdesknet/phpunit-woocommerce:2-2
except:
variables:
- $DISABLE_INTEGRATION_TESTS
.template: &integration_test_php-7_wc-3
<<: *job-test-integration-template-fast
image: wpdesknet/phpunit-woocommerce:2-3
except:
variables:
- $DISABLE_INTEGRATION_TESTS
.template: &integration_test_current_woocommerce
<<: *job-test-integration-template-fast
image: wpdesknet/phpunit-woocommerce:0-0
allow_failure: true
before_script:
- export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
- cd ${CI_PROJECT_DIR}
- mkdir -p .tmp
- cd .tmp
- if [[ ! -d woocommerce ]]; then git clone https://github.com/woocommerce/woocommerce.git; fi
- cd woocommerce
- git pull
- ln -s ${CI_PROJECT_DIR}/.tmp/woocommerce /tmp/woocommerce
- cat /tmp/wordpress-develop/src/wp-includes/version.php
- cat /tmp/woocommerce/woocommerce.php
- cd ${CI_PROJECT_DIR}
- COMPOSER_MEMORY_LIMIT=-1 composer install --no-progress --prefer-dist
- ln -s $CI_PROJECT_DIR /tmp/wordpress-develop/src/wp-content/plugins/$CI_PROJECT_NAME
except:
variables:
- $DISABLE_INTEGRATION_TESTS
integration test lastest:
<<: *integration_test_lastest
only:
refs:
- master
- devel
- tags
integration test lastest coverage:
<<: *integration_test_lastest_coverage
only:
refs:
- master
integration test php7-1 wc-1:
<<: *integration_test_php7-1_wc-1
only:
refs:
- master
- devel
- tags
integration test php7 wc-2:
<<: *integration_test_php7_wc-2
only:
refs:
- master
- devel
- tags
integration test php-7 wc-3:
<<: *integration_test_php-7_wc-3
only:
refs:
- master
- devel
- tags
integration test current woocommerce:
<<: *integration_test_current_woocommerce
only:
refs:
- master
- devel
- tags
integration test lastest manual:
<<: *integration_test_lastest
when: manual
allow_failure: true
except:
refs:
- master
- devel
- tags
variables:
- $DISABLE_INTEGRATION_TESTS
integration test lastest coverage manual:
<<: *integration_test_lastest_coverage
when: manual
allow_failure: true
except:
refs:
- master
- devel
- tags
variables:
- $DISABLE_INTEGRATION_TESTS
integration test php7-1 wc-1 manual:
<<: *integration_test_php7-1_wc-1
when: manual
allow_failure: true
except:
refs:
- master
- devel
- tags
variables:
- $DISABLE_INTEGRATION_TESTS
integration test php7 wc-2 manual:
<<: *integration_test_php7_wc-2
when: manual
allow_failure: true
except:
refs:
- master
- devel
- tags
variables:
- $DISABLE_INTEGRATION_TESTS
integration test php-7 wc-3 manual:
<<: *integration_test_php-7_wc-3
when: manual
allow_failure: true
except:
refs:
- master
- devel
- tags
variables:
- $DISABLE_INTEGRATION_TESTS
integration test current woocommerce manual:
<<: *integration_test_current_woocommerce
when: manual
allow_failure: true
except:
refs:
- master
- devel
- tags
variables:
- $DISABLE_INTEGRATION_TESTS