-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Showing
4 changed files
with
108 additions
and
20 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
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,6 +1,41 @@ | ||
test-all: vendor/bin/phpunit --testsuite Sqlite,Mysql,Pgsql,Mssql,Oracle | ||
test-sqlite: vendor/bin/phpunit --testsuite Sqlite | ||
test-mysql: vendor/bin/phpunit --testsuite Mysql | ||
test-pgsql: vendor/bin/phpunit --testsuite Pgsql | ||
test-mssql: vendor/bin/phpunit --testsuite Mssql | ||
test-oracle: vendor/bin/phpunit --testsuite Oracle | ||
run: | ||
docker compose run --rm --entrypoint $(CMD) php | ||
|
||
test-all: test-sqlite \ | ||
test-mysql \ | ||
test-pgsql \ | ||
test-mssql \ | ||
test-oracle | ||
test-sqlite: testsuite-Sqlite | ||
test-mysql: testsuite-Mysql | ||
test-pgsql: testsuite-Pgsql | ||
test-mssql: testsuite-Mssql | ||
test-oracle: | ||
docker compose run \ | ||
--rm \ | ||
--entrypoint 'bash -c -l "vendor/bin/phpunit --testsuite Oracle"' \ | ||
php | ||
|
||
testsuite-%: | ||
docker compose run \ | ||
--rm \ | ||
--entrypoint "vendor/bin/phpunit --testsuite $(subst testsuite-,,$@)" \ | ||
php | ||
|
||
static-analysis: CMD="vendor/bin/psalm --no-cache" | ||
static-analysis: run | ||
|
||
mutation: CMD="\ | ||
vendor/bin/roave-infection-static-analysis-plugin \ | ||
--threads=2 \ | ||
--min-msi=0 \ | ||
--min-covered-msi=100 \ | ||
--ignore-msi-with-no-mutations \ | ||
--only-covered" | ||
mutation: run | ||
|
||
composer-require-checker: CMD="vendor/bin/composer-require-checker" | ||
composer-require-checker: run | ||
|
||
shell: CMD="bash" | ||
shell: run |
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,3 @@ | ||
FROM gvenzl/oracle-free:23 | ||
|
||
RUN chown -R 54321:54321 /opt/oracle/oradata && chmod 0777 /opt/oracle/oradata |