Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
8b0c223d
Commit
8b0c223d
authored
9 years ago
by
Lukas Reschke
Browse files
Options
Downloads
Patches
Plain Diff
Add support for facade binary scripts
Fixes
https://github.com/owncloud/core/issues/16296
parent
e3ac4d7b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
autotest.sh
+10
-3
10 additions, 3 deletions
autotest.sh
with
10 additions
and
3 deletions
autotest.sh
+
10
−
3
View file @
8b0c223d
...
@@ -53,7 +53,14 @@ if ! [ -x "$PHPUNIT" ]; then
...
@@ -53,7 +53,14 @@ if ! [ -x "$PHPUNIT" ]; then
exit
3
exit
3
fi
fi
PHPUNIT_VERSION
=
$(
"
$PHP
"
"
$PHPUNIT
"
--version
|
cut
-d
" "
-f2
)
# PHPUnit might also be installed via a facade binary script
if
[[
"
$PHPUNIT
"
=
~
\.
phar
$
]]
;
then
PHPUNIT
=
"
$PHP
$PHPUNIT
"
else
PHPUNIT
=
"
$PHPUNIT
"
fi
PHPUNIT_VERSION
=
$(
$PHPUNIT
--version
|
cut
-d
" "
-f2
)
PHPUNIT_MAJOR_VERSION
=
$(
echo
"
$PHPUNIT_VERSION
"
|
cut
-d
"."
-f1
)
PHPUNIT_MAJOR_VERSION
=
$(
echo
"
$PHPUNIT_VERSION
"
|
cut
-d
"."
-f1
)
PHPUNIT_MINOR_VERSION
=
$(
echo
"
$PHPUNIT_VERSION
"
|
cut
-d
"."
-f2
)
PHPUNIT_MINOR_VERSION
=
$(
echo
"
$PHPUNIT_VERSION
"
|
cut
-d
"."
-f2
)
...
@@ -160,11 +167,11 @@ function execute_tests {
...
@@ -160,11 +167,11 @@ function execute_tests {
mkdir
"coverage-html-
$1
"
mkdir
"coverage-html-
$1
"
"
$PHP
"
-f
enable_all.php |
grep
-i
-C9999
error
&&
echo
"Error during setup"
&&
exit
101
"
$PHP
"
-f
enable_all.php |
grep
-i
-C9999
error
&&
echo
"Error during setup"
&&
exit
101
if
[
-z
"
$NOCOVERAGE
"
]
;
then
if
[
-z
"
$NOCOVERAGE
"
]
;
then
"
$PHP
"
"
$PHPUNIT
"
--configuration
phpunit-autotest.xml
--log-junit
"autotest-results-
$1
.xml"
--coverage-clover
"autotest-clover-
$1
.xml"
--coverage-html
"coverage-html-
$1
"
"
$2
"
"
$3
"
$PHPUNIT
--configuration
phpunit-autotest.xml
--log-junit
"autotest-results-
$1
.xml"
--coverage-clover
"autotest-clover-
$1
.xml"
--coverage-html
"coverage-html-
$1
"
"
$2
"
"
$3
"
RESULT
=
$?
RESULT
=
$?
else
else
echo
"No coverage"
echo
"No coverage"
"
$PHP
"
"
$PHPUNIT
"
--configuration
phpunit-autotest.xml
--log-junit
"autotest-results-
$1
.xml"
"
$2
"
"
$3
"
$PHPUNIT
--configuration
phpunit-autotest.xml
--log-junit
"autotest-results-
$1
.xml"
"
$2
"
"
$3
"
RESULT
=
$?
RESULT
=
$?
fi
fi
}
}
...
...
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