Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-logs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-logs
Commits
77140cf3
Commit
77140cf3
authored
6 years ago
by
dyszczo
Browse files
Options
Downloads
Patches
Plain Diff
new CI
parent
67c93eed
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!8
Feature/broken wc logger
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-84
4 additions, 84 deletions
.gitlab-ci.yml
with
4 additions
and
84 deletions
.gitlab-ci.yml
+
4
−
84
View file @
77140cf3
variables
:
variables
:
PHP_ERROR_REPORTING
:
E_ALL
DISABLE_FUNCTIONAL
:
1
COMPOSER_ALLOW_SUPERUSER
:
1
DISABLE_ACCEPTANCE
:
1
GIT_STRATEGY
:
fetch
IS_LIBRARY
:
1
MYSQL_ROOT_PASSWORD
:
mysql
MYSQL_DATABASE
:
wptest
MYSQL_USER
:
mysql
MYSQL_PASSWORD
:
mysql
MYSQL_INNODB_LOG_BUFFER_SIZE
:
32M
PHP_ERROR_REPORTING
:
E_ALL
COMPOSER_ALLOW_SUPERUSER
:
1
GIT_STRATEGY
:
fetch
include
:
'
https://gitlab.com/wpdesk/gitlab-ci/raw/master/gitlab-ci-1.2.yml'
stages
:
-
tools
-
tests
.template
:
&job-test-template
stage
:
tests
coverage
:
'
/^\s*Lines:\s*\d+.\d+\%/'
.template
:
&job-test-unit-template
<<
:
*job-test-template
script
:
-
echo ${WPDESK_CI_VERSION}
-
ls -l
-
php --version
-
cat /tmp/wordpress-develop/src/wp-includes/version.php
-
cat /tmp/woocommerce/woocommerce.php
-
composer update --no-progress
-
vendor/bin/phpunit --configuration phpunit-unit.xml --coverage-text --colors=never
.template
:
&job-test-integration-template
<<
:
*job-test-template
services
:
-
mysql:5.6
script
:
-
echo ${WPDESK_CI_VERSION}
-
ls -l
-
php --version
-
cat /tmp/wordpress-develop/src/wp-includes/version.php
-
cat /tmp/woocommerce/woocommerce.php
-
composer update --no-progress
-
if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
-
vendor/bin/phpunit --configuration phpunit-integration.xml --coverage-text --colors=never
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
#unit test lastest:
# <<: *job-test-unit-template
# image: wpdesknet/phpunit-woocommerce:0-0
integration test lastest
:
<<
:
*job-test-integration-template
image
:
wpdesknet/phpunit-woocommerce:0-0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment