Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scripts
mahara-scripts
Commits
35059d95
Commit
35059d95
authored
May 14, 2018
by
Cecilia Vela Gurovic
Browse files
Jenkins-mahara: run only one feature file
(behat number fix)
parent
8eae0b39
Pipeline
#98
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
jenkins/mahara_jenkins.php
View file @
35059d95
...
...
@@ -301,7 +301,7 @@ echo "\n";
if
((
$BEHATTESTNUMBER
=
trim
(
shell_exec
(
"git diff-tree --no-commit-id --name-only -r HEAD | grep -c
$BEHATTESTREGEX
"
)))
>=
1
)
{
echo
"Patch includes a Behat test.
\n
"
;
if
(
$BEHATTESTNUMBER
==
1
)
{
if
(
$BEHATTESTNUMBER
==
=
'1'
)
{
$BEHATTESTFEATURE
=
basename
(
trim
(
shell_exec
(
"git diff-tree --no-commit-id --name-only -r HEAD | grep
$BEHATTESTREGEX
"
)));
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment