-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a622314
commit a5f0a9b
Showing
10 changed files
with
77 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM php:8.1-alpine | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
RUN apk add --no-cache mysql-client postgresql-dev | ||
|
||
RUN docker-php-ext-install pdo pdo_mysql pdo_pgsql | ||
|
||
#TODO: install MySQL and PgSQL servers and the database if necessary | ||
|
||
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker build ./.docker/php --tag ltfb | ||
|
||
docker run -i -t --rm --volume "$PWD/.:/app" --workdir /app ltfb sh -c 'rm -rf tests/App*/var/cache/* vendor/ composer.lock ; composer update' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- https://phpunit.de/manual/3.7/en/appendixes.configuration.html --> | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" | ||
colors="true" | ||
beStrictAboutOutputDuringTests="true" | ||
> | ||
|
||
<php> | ||
<server name="KERNEL_CLASS" value="Liip\Acme\Tests\App\AppKernel" /> | ||
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/> | ||
</php> | ||
|
||
<testsuites> | ||
<testsuite name="Project Test Suite"> | ||
<directory>tests/Test</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>src</directory> | ||
</whitelist> | ||
</filter> | ||
|
||
<groups> | ||
<exclude> | ||
<group>mysql</group> | ||
<group>pgsql</group> | ||
</exclude> | ||
</groups> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" colors="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache"> | ||
<coverage/> | ||
<php> | ||
<server name="KERNEL_CLASS" value="Liip\Acme\Tests\App\AppKernel"/> | ||
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Project Test Suite"> | ||
<directory>tests/Test</directory> | ||
</testsuite> | ||
</testsuites> | ||
<groups> | ||
<exclude> | ||
<group>mysql</group> | ||
<group>pgsql</group> | ||
</exclude> | ||
</groups> | ||
<source> | ||
<include> | ||
<directory>src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
#docker run -i -t --rm --volume "$PWD/.:/app" --workdir /app ltfb sh -c 'rm -rf tests/App*/var/cache/* ; composer update ; php vendor/phpunit/phpunit/phpunit --filter testLoadNonexistentFixturesFilesPaths --exclude-group "" --testdox' | ||
docker run -i -t --rm --volume "$PWD/.:/app" --workdir /app ltfb sh -c \ | ||
'php vendor/phpunit/phpunit/phpunit --exclude-group="" --testdox' | ||
|
||
#docker run -i -t --rm --volume "$PWD/.:/app" --workdir /app ltfb sh -c \ | ||
#'composer dump-autoload ; php vendor/phpunit/phpunit/phpunit --filter ConfigSqliteTwoConnectionsTest --exclude-group="" --testdox' | ||
|
||
#docker run -i -t --rm --volume "$PWD/.:/app" --workdir /app ltfb sh -c 'ls -lh /app/tests/AppConfigSqliteTwoConnections/var/cache/' | ||
docker run -i -t --rm --volume "$PWD/.:/app" --workdir /app ltfb sh -c 'rm -rf /app/tests/App*/var/cache/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
doctrine: | ||
dbal: | ||
url: 'mysql://root:@127.0.0.1:3306/foobar' | ||
url: 'mysql://root:[email protected].0.1:3306/foobar' | ||
driver: pdo_mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters