Skip to content
Snippets Groups Projects
Commit 1867e372 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Merge branch 'feature/metrics' into 'devel'

metrics

See merge request wpdesk/plugin-template!30
parents e7e3e74a 1b985c78
Branches
Tags
2 merge requests!36Devel,!30metrics
......@@ -11,6 +11,7 @@ variables:
ACCEPTANCE_ERROR_PATH: ${CI_PROJECT_DIR}/acceptance
stages:
- tools
- tests
- pre-deploy
- deploy
......@@ -92,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment