Skip to content
GitLab
Menu
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
8eae0b39
Commit
8eae0b39
authored
May 14, 2018
by
Cecilia Vela Gurovic
Browse files
Jenkins-mahara: run only one feature file
(behat number fix)
parent
66b28c95
Changes
1
Show whitespace changes
Inline
Side-by-side
jenkins/mahara_jenkins.php
View file @
8eae0b39
...
...
@@ -299,9 +299,9 @@ echo "\n";
echo
"########## Verify that the patch contains a Behat test
\n
"
;
echo
"
\n
"
;
if
(
$BEHATTESTNUMBER
=
trim
(
shell_exec
(
"git diff-tree --no-commit-id --name-only -r HEAD | grep -c
$BEHATTESTREGEX
"
))
>=
1
)
{
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
(
intval
(
$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
.
Attach a 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