-
Notifications
You must be signed in to change notification settings - Fork 14
Update deps + test on dbal v3 #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| vendor/ | ||
| composer.lock | ||
| phpunit.xml | ||
| build/ | ||
| build/ | ||
| .phpunit.result.cache |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,37 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
|
|
||
| <phpunit backupGlobals="false" | ||
| backupStaticAttributes="false" | ||
| colors="true" | ||
| convertErrorsToExceptions="true" | ||
| convertNoticesToExceptions="true" | ||
| convertWarningsToExceptions="true" | ||
| processIsolation="false" | ||
| stopOnFailure="false" | ||
| bootstrap="tests/bootstrap.php" | ||
| <phpunit | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" | ||
| backupGlobals="false" | ||
| backupStaticAttributes="false" | ||
| colors="true" | ||
| convertErrorsToExceptions="true" | ||
| convertNoticesToExceptions="true" | ||
| convertWarningsToExceptions="true" | ||
| processIsolation="false" | ||
| stopOnFailure="false" | ||
| bootstrap="tests/bootstrap.php" | ||
| > | ||
|
|
||
| <php> | ||
| <var name="db_host" value="127.0.0.1" /> | ||
| <var name="db_port" value="3306"/> | ||
| <var name="db_username" value="root" /> | ||
| <var name="db_password" value="" /> | ||
| <var name="db_driver" value="pdo_mysql"/> | ||
| </php> | ||
|
|
||
| <testsuites> | ||
| <testsuite name="Mouf Test Suite"> | ||
| <directory>./tests/</directory> | ||
| </testsuite> | ||
| </testsuites> | ||
|
|
||
| <filter> | ||
| <whitelist processUncoveredFilesFromWhitelist="true"> | ||
| <directory suffix=".php">src/</directory> | ||
| </whitelist> | ||
| </filter> | ||
| <logging> | ||
| <log type="coverage-html" target="build/coverage" /> | ||
| <log type="coverage-clover" target="build/logs/clover.xml"/> | ||
| </logging> | ||
| <coverage processUncoveredFiles="true"> | ||
| <include> | ||
| <directory suffix=".php">src/</directory> | ||
| </include> | ||
| <report> | ||
| <clover outputFile="build/logs/clover.xml"/> | ||
| <html outputDirectory="build/coverage"/> | ||
| </report> | ||
| </coverage> | ||
| <php> | ||
| <var name="db_host" value="127.0.0.1"/> | ||
| <var name="db_port" value="3306"/> | ||
| <var name="db_username" value="root"/> | ||
| <var name="db_password" value=""/> | ||
| <var name="db_driver" value="pdo_mysql"/> | ||
| </php> | ||
| <testsuites> | ||
| <testsuite name="Mouf Test Suite"> | ||
| <directory>./tests/</directory> | ||
| </testsuite> | ||
| </testsuites> | ||
| <logging/> | ||
| </phpunit> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Use this file to start a MySQL8 database using Docker and then run the test suite on the MySQL8 database. | ||
|
|
||
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
| cd $DIR | ||
| cd .. | ||
|
|
||
| docker run --rm --name mysql8-magic-query-test -p 3306:3306 -p 33060:33060 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -d mysql:8 mysqld --default-authentication-plugin=mysql_native_password | ||
|
homersimpsons marked this conversation as resolved.
|
||
|
|
||
| # Let's wait for MySQL 8 to start | ||
| sleep 20 | ||
|
|
||
| vendor/bin/phpunit -c phpunit.xml.dist $NO_COVERAGE | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's just a way to pass arguments to phpunit,
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It could just be a |
||
| RESULT_CODE=$? | ||
|
|
||
| docker stop mysql8-magic-query-test | ||
|
|
||
| exit $RESULT_CODE | ||
Uh oh!
There was an error while loading. Please reload this page.