-
Notifications
You must be signed in to change notification settings - Fork 0
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
981e2e3
commit af4d249
Showing
10 changed files
with
3,625 additions
and
22 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,16 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/php/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] PHP version (use -bullseye variants on local arm64/Apple Silicon): 8, 8.1, 8.0, 7, 7.4, 7.3, 8-bullseye, 8.1-bullseye, 8.0-bullseye, 7-bullseye, 7.4-bullseye, 7.3-bullseye, 8-buster, 8.1-buster, 8.0-buster, 7-buster, 7.4-buster | ||
ARG VARIANT="8.1-apache-bullseye" | ||
FROM mcr.microsoft.com/vscode/devcontainers/php:0-${VARIANT} | ||
|
||
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10 | ||
ARG NODE_VERSION="none" | ||
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> | ||
|
||
# [Optional] Uncomment this line to install global node packages. | ||
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1 |
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,44 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/php | ||
{ | ||
"name": "PHP", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
// Update VARIANT to pick a PHP version: 8, 8.1, 8.0, 7, 7.4 | ||
// Append -bullseye or -buster to pin to an OS version. | ||
// Use -bullseye variants on local on arm64/Apple Silicon. | ||
"VARIANT": "8", | ||
"NODE_VERSION": "16" | ||
} | ||
}, | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"php.validate.executablePath": "/usr/local/bin/php" | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"aaron-bond.better-comments", | ||
"bmewburn.vscode-intelephense-client", | ||
"felixfbecker.php-debug", | ||
"ikappas.composer", | ||
"lextudio.restructuredtext", | ||
"mrmlnc.vscode-apache", | ||
"neilbrayfield.php-docblocker" | ||
], | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [8080], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html" | ||
|
||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode", | ||
"features": { | ||
"git": "latest", | ||
"github-cli": "latest" | ||
} | ||
} |
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,2 +1,18 @@ | ||
/vendor | ||
composer.lock | ||
# Composer | ||
composer.phar | ||
vendor/ | ||
|
||
# NPM | ||
node_modules/ | ||
|
||
# Visual Studio Code extensions | ||
# Local History (xyz.local-history): https://marketplace.visualstudio.com/items?itemName=xyz.local-history | ||
.history | ||
|
||
# user-configured files | ||
# PHPUnit | ||
.phpunit.xml | ||
|
||
# phpDocumentor | ||
.phpdoc | ||
phpdoc.xml |
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,9 +1,33 @@ | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/> | ||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" /> | ||
<!-- don't need to document typed return values --> | ||
<rule ref="MediaWiki.Commenting.FunctionComment.MissingReturn"> | ||
<severity>0</severity> | ||
</rule> | ||
<rule ref="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic"> | ||
<severity>0</severity> | ||
</rule> | ||
<!-- don't need to document private members --> | ||
<rule ref="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate"> | ||
<severity>0</severity> | ||
</rule> | ||
<rule ref="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate"> | ||
<severity>0</severity> | ||
</rule> | ||
|
||
<rule ref="Squiz.Commenting.FunctionComment.IncorrectTypeHint"/> | ||
<rule ref="Generic.Files.LineLength"> | ||
<properties> | ||
<!-- inherited line limit from MediaWiki is 100; make it at least 120 --> | ||
<property name="lineLimit" value="120" /> | ||
</properties> | ||
</rule> | ||
|
||
<file>.</file> | ||
<exclude-pattern>/tests/*</exclude-pattern> | ||
<arg name="bootstrap" value="./vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php"/> | ||
<arg name="extensions" value="php,php5,inc"/> | ||
<arg name="encoding" value="UTF-8"/> | ||
<exclude-pattern>.history</exclude-pattern> | ||
<arg name="bootstrap" value="./vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php" /> | ||
<arg name="extensions" value="php" /> | ||
<arg name="encoding" value="UTF-8" /> | ||
</ruleset> |
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,20 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit bootstrap="tests/phpunit/bootstrap.php" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.3/phpunit.xsd" | ||
<phpunit | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
|
||
colors="true" | ||
backupGlobals="false" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
forceCoversAnnotation="true" | ||
failOnWarning="true" | ||
stopOnFailure="false" | ||
beStrictAboutTestsThatDoNotTestAnything="true" | ||
beStrictAboutOutputDuringTests="true" | ||
verbose="false"> | ||
backupGlobals="false" | ||
beStrictAboutTestsThatDoNotTestAnything="true" | ||
beStrictAboutOutputDuringTests="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
forceCoversAnnotation="true" | ||
failOnWarning="true" | ||
stopOnFailure="false" | ||
verbose="false"> | ||
<php> | ||
<ini name="memory_limit" value="512M" /> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Unit"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
</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
Oops, something went wrong.