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
7284032a
Commit
7284032a
authored
2 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
Feature/codeception parallel
parent
7026ae27
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/prepare.yml
+4
-0
4 additions, 0 deletions
includes/prepare.yml
includes/tests/codeception-parallel.yml
+9
-58
9 additions, 58 deletions
includes/tests/codeception-parallel.yml
with
13 additions
and
58 deletions
includes/prepare.yml
+
4
−
0
View file @
7284032a
...
...
@@ -31,6 +31,8 @@ prepare npm assets:
tags
:
-
vendor
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
when
:
never
-
exists
:
-
package.json
-
tests/codeception/prepare_npm.sh
...
...
@@ -76,6 +78,8 @@ prepare tests:
paths
:
-
tests/dependent_plugins
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
when
:
never
-
exists
:
-
tests/integration/prepare.sh
-
tests/codeception/prepare.sh
...
...
This diff is collapsed.
Click to expand it.
includes/tests/codeception-parallel.yml
+
9
−
58
View file @
7284032a
...
...
@@ -17,6 +17,8 @@
CI_DEBUG_SERVICES
:
trace
SCREEN_WIDTH
:
1200
SCREEN_HEIGHT
:
1200
parallel
:
4
retry
:
2
services
:
-
name
:
mysql:5.6
alias
:
mysqltests
...
...
@@ -34,6 +36,8 @@
stage
:
tests
allow_failure
:
false
interruptible
:
true
before_script
:
-
export PARALLEL_JOB=${CI_NODE_INDEX}
script
:
-
echo "xdebug.max_nesting_level=2560" >> /usr/local/etc/php/php.ini
-
export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
...
...
@@ -58,7 +62,7 @@
-
chmod a+w ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log
-
echo "End before"
-
cd ${CI_PROJECT_DIR}
-
composer prepare-parallel-codeception-tests
4
-
composer prepare-parallel-codeception-tests
${CI_NODE_TOTAL}
-
vendor/bin/codecept run acceptance $PARALLEL_JOB --steps --xml --html -f --verbose
after_script
:
-
cp ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log tests/codeception/tests/_output/debug.log ||
true
...
...
@@ -133,69 +137,16 @@
-
cd ${CI_PROJECT_DIR}
-
vendor/bin/codecept run acceptance --steps --xml --html -f --coverage --coverage-xml --coverage-html --verbose
codeception test 1
:
<<
:
*job-codeception-test-parallel-auto
before_script
:
-
export PARALLEL_JOB=1
codeception test 2
:
codeception parallel test
:
<<
:
*job-codeception-test-parallel-auto
before_script
:
-
export PARALLEL_JOB=2
codeception test 3
:
<<
:
*job-codeception-test-parallel-auto
before_script
:
-
export PARALLEL_JOB=3
codeception test 4
:
<<
:
*job-codeception-test-parallel-auto
before_script
:
-
export PARALLEL_JOB=4
codeception test manual 1
:
<<
:
*job-codeception-test-parallel-manual
before_script
:
-
export PARALLEL_JOB=1
codeception test manual 2
:
<<
:
*job-codeception-test-parallel-manual
before_script
:
-
export PARALLEL_JOB=2
codeception test manual
3
:
codeception
paralel
test manual
:
<<
:
*job-codeception-test-parallel-manual
before_script
:
-
export PARALLEL_JOB=3
codeception test manual 4
:
<<
:
*job-codeception-test-parallel-manual
before_script
:
-
export PARALLEL_JOB=4
codeception test manual recorded 1
:
<<
:
*job-codeception-test-parallel-manual-recorded
before_script
:
-
export PARALLEL_JOB=1
-
cp vendor/wpdesk/wp-codeception/configuration/codeception-with-recorder.dist.yml codeception-with-recorder.dist.yml
codeception test manual recorded 2
:
<<
:
*job-codeception-test-parallel-manual-recorded
before_script
:
-
export PARALLEL_JOB=2
-
cp vendor/wpdesk/wp-codeception/configuration/codeception-with-recorder.dist.yml codeception-with-recorder.dist.yml
codeception test manual recorded 3
:
<<
:
*job-codeception-test-parallel-manual-recorded
before_script
:
-
export PARALLEL_JOB=3
-
cp vendor/wpdesk/wp-codeception/configuration/codeception-with-recorder.dist.yml codeception-with-recorder.dist.yml
codeception test manual recorded
4
:
codeception
parallel
test manual recorded
:
<<
:
*job-codeception-test-parallel-manual-recorded
before_script
:
-
export PARALLEL_JOB=
4
-
export PARALLEL_JOB=
$CI_NODE_INDEX
-
cp vendor/wpdesk/wp-codeception/configuration/codeception-with-recorder.dist.yml codeception-with-recorder.dist.yml
codeception code coverage manual
:
...
...
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