Skip to content
Snippets Groups Projects
Commit 8eefd9e7 authored by dyszczo's avatar dyszczo
Browse files

Common project files update

parent f3d91c22
No related branches found
No related tags found
No related merge requests found
Pipeline #7596 passed with warnings
variables:
WPDESK_CI_VERSION: 1.10.16
WPDESK_CI_VERSION: 1.10.18
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE: wptest
MYSQL_USER: mysql
......@@ -8,8 +8,10 @@ variables:
PHP_ERROR_REPORTING: E_ALL
COMPOSER_ALLOW_SUPERUSER: 1
GIT_STRATEGY: fetch
ACCEPTANCE_ERROR_PATH: ${CI_PROJECT_DIR}/acceptance
stages:
- tools
- tests
- pre-deploy
- deploy
......@@ -91,6 +93,34 @@ stages:
before_script:
- cd ${CI_PROJECT_DIR}
phpmetric metrics:
stage: tools
image: wpdesknet/phpunit-woocommerce:0-0
allow_failure: true
when: manual
artifacts:
when: always
expire_in: 1 month
name: "metrics"
paths:
- ${CI_PROJECT_DIR}/phpmetric
script:
- echo ${WPDESK_CI_VERSION}
- composer require phpmetrics/phpmetrics
- composer update --no-progress
- php ./vendor/bin/phpmetrics --report-html=phpmetric .
churn metrics:
stage: tools
image: wpdesknet/phpunit-woocommerce:0-0
allow_failure: true
when: manual
script:
- echo ${WPDESK_CI_VERSION}
- composer require bmitch/churn-php
- composer update --no-progress
- vendor/bin/churn run classes inc
code style test:
stage: tests
image: wpdesknet/phpunit-woocommerce:0-0
......@@ -136,6 +166,57 @@ integration test php5-5:
<<: *job-test-integration-template-fast
image: wpdesknet/phpunit-woocommerce:4-0
integration test current woocommerce:
<<: *job-test-integration-template-fast
image: wpdesknet/phpunit-woocommerce:0-0
allow_failure: true
before_script:
- cd /tmp
- rm -rf woocommerce
- git clone https://github.com/woocommerce/woocommerce.git
- cd ${CI_PROJECT_DIR}
acceptance test:
image: wpdesknet/node
variables:
CI_DEBUG_SERVICES: trace
services:
- name: mysql:5.6
alias: mysqltests
- name: wpdesknet/apache-woocommerce:latest
alias: wootests
- name: selenium/standalone-chrome
alias: selenium
artifacts:
when: always
expire_in: 1 day
name: "error logs"
paths:
- ${CI_PROJECT_DIR}/acceptance
stage: tests
allow_failure: true
script:
- cd ${CI_PROJECT_DIR}
- composer update --no-progress --no-dev
- if [[ -f ${CI_PROJECT_DIR}/tests/acceptance/prepare.sh ]]; then sh ${CI_PROJECT_DIR}/tests/acceptance/prepare.sh; fi
- export MYSQL_IP=$(awk '/^[[:space:]]*($|#)/{next} /mysqltests/{print $1; exit}' /etc/hosts)
- export WOOTESTS_IP=$(awk '/^[[:space:]]*($|#)/{next} /wootests/{print $1; exit}' /etc/hosts)
- echo "http://wootests/wpdesk_init.php?mysql_ip=${MYSQL_IP}&wootests_ip=${WOOTESTS_IP}"
- wget -O /tmp/wpdesk_init.txt "http://wootests/wpdesk_init.php?mysql_ip=${MYSQL_IP}&wootests_ip=${WOOTESTS_IP}"
- tail -50 /tmp/wpdesk_init.txt
- sh /tmp/clone.sh git@gitlab.com:wpdesk/plugins-tests.git /tmp/tests headless
- cd /tmp/tests
- npm install
- npm install -g grunt-cli
- cd node_modules/.bin
- ./webdriver-manager update
- cd ../
- mkdir -p ${CI_PROJECT_DIR}/acceptance/reports/html/screenshot
- grunt chrome-${CI_PROJECT_NAME}
apigen docs:
image:
name: wpdesknet/apigen
......
### Select WooCommerce version e.g: [x] 2.6
<!--- Select the WooCommerce version on which the error occurred -->
- [ ] [2.6](http://woo26.tests.wpdesk.org)
- [ ] [2.7](http://woo27.tests.wpdesk.org)
- [ ] [3.0](http://woo30.tests.wpdesk.org)
- [ ] [3.1](http://woo31.tests.wpdesk.org)
- [ ] [3.2](http://woo32.tests.wpdesk.org)
- [ ] [3.3](http://woo33.tests.wpdesk.org)
- [ ] [3.4](http://woo34.tests.wpdesk.org)
- [ ] [Stable](https://stable.wpdesk.org/)
### Select PHP version e.g: [x] 5.6
<!--- Select the PHP version on which the error occurred -->
- [ ] 5.3
- [ ] 5.5
- [ ] 5.6
- [ ] 7.1
- [ ] 7.2
## Steps to Reproduce
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
1.
2.
## Expected Behavior
<!--- Tell what should happen -->
1.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment