Skip to content
Snippets Groups Projects
Verified Commit 725783e2 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

refactor: remove unused metrics from CI

parent 654ee531
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,6 @@ include: ...@@ -32,7 +32,6 @@ include:
- '/includes/tests/static-analysis.yml' - '/includes/tests/static-analysis.yml'
- '/includes/tests/lint.yml' - '/includes/tests/lint.yml'
- '/includes/tests/unit.yml' - '/includes/tests/unit.yml'
- '/includes/metrics.yml'
- '/includes/tests/version-cohesion.yml' - '/includes/tests/version-cohesion.yml'
- '/includes/tests/codeception-integration.yml' - '/includes/tests/codeception-integration.yml'
- '/includes/tests/codeception.yml' - '/includes/tests/codeception.yml'
......
.template: &job-metrics
variables:
COMPOSER_BIN_DIR: "/tmp/vendor/bin"
tags:
- metrics
stage: tools
image: gitlab.wpdesk.dev:5050/wpdesk/docker-tests/php-box:7.4.1
allow_failure: true
needs:
- prepare prefixed vendor
phpmetric metrics:
<<: *job-metrics
artifacts:
when: always
expire_in: 1 month
name: "phpmetric"
paths:
- phpmetric
script:
- echo ${WPDESK_CI_VERSION}
- composer global require phpmetrics/phpmetrics
- /tmp/vendor/bin/phpmetrics --report-html=phpmetric .
churn metrics:
<<: *job-metrics
artifacts:
when: always
expire_in: 1 month
name: "churn"
paths:
- churn
needs: []
script:
- echo ${WPDESK_CI_VERSION}
- composer global require bmitch/churn-php
- export DIRS=""
- if [ -d "classes" ]; then export DIRS="$DIRS classes"; fi;
- if [ -d "src" ]; then export DIRS="$DIRS src"; fi;
- /tmp/vendor/bin/churn run $DIRS
- mkdir churn
- /tmp/vendor/bin/churn run $DIRS > churn/report.txt
phpdoc:
image:
name: phpdoc/phpdoc
entrypoint: [""]
tags:
- metrics
stage: tools
allow_failure: true
needs: []
artifacts:
when: always
expire_in: 1 month
name: "phpdoc"
paths:
- phpdoc
script:
- echo ${WPDESK_CI_VERSION}
- export DIRS=""
- if [ -d "classes" ]; then export DIRS="$DIRS -d classes"; fi;
- if [ -d "src" ]; then export DIRS="$DIRS -d src"; fi;
- phpdoc $DIRS -t phpdoc --template=default
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment