mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-05 19:05:33 +01:00
Re-add examples
This commit is contained in:
parent
579c476a54
commit
4e885eea91
12 changed files with 146 additions and 0 deletions
1
examples/php-simple/.env.example
Normal file
1
examples/php-simple/.env.example
Normal file
|
@ -0,0 +1 @@
|
|||
export COMPOSE_PROJECT_NAME=php-simple
|
14
examples/php-simple/Dockerfile
Normal file
14
examples/php-simple/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM php:8.1-cli-bullseye AS base
|
||||
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||
RUN which composer && composer -V
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PATH="${PATH}:/app/vendor/bin"
|
||||
|
||||
COPY composer.* ./
|
||||
|
||||
|
||||
|
||||
|
4
examples/php-simple/build.yaml
Normal file
4
examples/php-simple/build.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
name: php-simple
|
||||
type: php-library
|
||||
php:
|
||||
version: 8.1-cli-bullseye
|
7
examples/php-simple/phpcs.xml.dist
Normal file
7
examples/php-simple/phpcs.xml.dist
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset name="php-simple coding standards">
|
||||
<description>PHPCS configuration file for php-simple.</description>
|
||||
<file>src</file>
|
||||
<arg value="np"/>
|
||||
<rule ref=""/>
|
||||
</ruleset>
|
5
examples/php-simple/phpstan.neon.dist
Normal file
5
examples/php-simple/phpstan.neon.dist
Normal file
|
@ -0,0 +1,5 @@
|
|||
parameters:
|
||||
level:
|
||||
paths:
|
||||
- src
|
||||
|
20
examples/php-simple/phpunit.xml.dist
Normal file
20
examples/php-simple/phpunit.xml.dist
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
|
||||
bootstrap="vendor/autoload.php"
|
||||
cacheResultFile=".phpunit.cache/test-results"
|
||||
executionOrder="depends,defects"
|
||||
forceCoversAnnotation="false"
|
||||
beStrictAboutCoversAnnotation="true"
|
||||
beStrictAboutOutputDuringTests="false"
|
||||
beStrictAboutTodoAnnotatedTests="true"
|
||||
convertDeprecationsToExceptions="true"
|
||||
failOnRisky="true"
|
||||
failOnWarning="true"
|
||||
verbose="true">
|
||||
<testsuites>
|
||||
<testsuite name="php-simple">
|
||||
<directory>tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
Loading…
Add table
Add a link
Reference in a new issue