Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
gitlab-ci
Commits
61ddc3cd
Commit
61ddc3cd
authored
4 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
bugfix(coverage): added XDEBUG_MODE=coverage
parent
dbf4964a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/tests/integration.yml
+2
-1
2 additions, 1 deletion
includes/tests/integration.yml
includes/tests/unit.yml
+4
-2
4 additions, 2 deletions
includes/tests/unit.yml
with
6 additions
and
3 deletions
includes/tests/integration.yml
+
2
−
1
View file @
61ddc3cd
...
...
@@ -23,8 +23,9 @@
-
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
-
echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
script
:
-
XDEBUG_MODE=coverage &&
vendor/bin/phpunit -d memory_limit=-1 --configuration phpunit-integration.xml --coverage-text --colors=never --log-junit tmp_artifacts/report.xml
-
vendor/bin/phpunit -d memory_limit=-1 --configuration phpunit-integration.xml --coverage-text --colors=never --log-junit tmp_artifacts/report.xml
only
:
refs
:
-
master
...
...
This diff is collapsed.
Click to expand it.
includes/tests/unit.yml
+
4
−
2
View file @
61ddc3cd
...
...
@@ -13,13 +13,15 @@
.template
:
&job-test-unit-template
<<
:
*job-test-template
script
:
before_
script
:
-
echo ${WPDESK_CI_VERSION}
-
ls -l
-
php --version
-
cat /tmp/wordpress-develop/src/wp-includes/version.php
-
cat /tmp/woocommerce/woocommerce.php
-
XDEBUG_MODE=coverage && vendor/bin/phpunit -d memory_limit=-1 --configuration phpunit-unit.xml --coverage-text --colors=never --log-junit tmp_artifacts/report.xml
-
echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
script
:
-
vendor/bin/phpunit -d memory_limit=-1 --configuration phpunit-unit.xml --coverage-text --colors=never --log-junit tmp_artifacts/report.xml
only
:
-
master
except
:
...
...
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