Commit 4dd67407 authored by Tim Schoondergang's avatar Tim Schoondergang

Merge branch '18-stricter-maken' into 'master'

Resolve "stricter maken"

Closes #18

See merge request !32
parents 9739123c 5e7973f5
PHP static:
image: php:7.4
stage: test
before_script:
- apt-get upgrade
- apt-get update
- apt-get -y install git
- apt-get -y install zip
- curl -sS https://getcomposer.org/installer | php
- php composer.phar config -g cache-dir "$(pwd)/.composer-cache"
- php composer.phar install --ignore-platform-reqs --no-dev --optimize-autoloader --no-ansi --no-interaction --no-progress
- touch ./CI
script:
- sh test/phpstan.sh | tee phpstan_results.txt
- EXIT_CODE=$?
- exit $EXIT_CODE
cache:
key: one-key-to-rule-them-all
paths:
- .composer-cache/
- vendor/
artifacts:
when: always
expire_in: 1 month
paths:
- phpstan_results.txt
only:
refs:
- merge_requests
PHP docblocks:
image: php:7.4
stage: test
before_script:
- apt-get upgrade
- apt-get update
- apt-get -y install git
- apt-get -y install zip
- curl -sS https://getcomposer.org/installer | php
- php composer.phar config -g cache-dir "$(pwd)/.composer-cache"
- php composer.phar install --ignore-platform-reqs --no-dev --optimize-autoloader --no-ansi --no-interaction --no-progress
- touch ./CI
script:
- sh test/phpdoc.sh | tee phpdoc_results.txt
- EXIT_CODE=$?
- exit $EXIT_CODE
cache:
key: one-key-to-rule-them-all
paths:
- .composer-cache/
- vendor/
artifacts:
when: always
expire_in: 1 month
paths:
- phpdoc_results.txt
only:
refs:
- merge_requests
{
"name": "timmit/db-mysql",
"description": "A simple DB layer in PHP for using MySQL(i)",
"version": "v4.2.0",
"version": "v4.2.1",
"keywords": ["DB", "MySQL", "MySQLi", "database", "DB layer", "database layer"],
"license": "MIT",
"homepage": "http://www.TiMMiT.nl/",
......@@ -13,7 +13,10 @@
}
],
"require": {
"php": ">=7.2.0"
"php": ">=7.2.0",
"phpstan/phpstan": "^0.12.25",
"phpstan/phpstan-strict-rules": "^0.12.5",
"sweetstackdigital/php-docblock-checker": "~1.10.6"
},
"minimum-stability": "dev",
"autoload": {
......
parameters:
level: 5
parallel:
maximumNumberOfProcesses: 4
minimumNumberOfJobsPerProcess: 2
jobSize: 2
processTimeout: 120.0
fileExtensions:
- php
paths:
- ./src
excludes_analyse:
dynamicConstantNames:
- FORCESSL
- ENV
- CLI_IP_ADDR
- CLI_VERSION
- CLI_HOST_ID
- CLI_DAEMON_ID
- FROM_EMAIL
treatPhpDocTypesAsCertain: false
This diff is collapsed.
#!/bin/sh
FILE=./CI
if [ -f "$FILE" ]; then
PHPOPTIONS=""
echo CI
else
phprefdir=`eval echo "~"`
phprefdir="$phprefdir/public_html"
PHPOPTIONS="--ea-reference-dir=$phprefdir "
fi
FILE=vendor/bin/phpdoccheck
if [ -f "$FILE" ]; then
TEST=$(php $PHPOPTIONS $FILE --directory=./src/)
fi
echo "$TEST"
if echo "$TEST" | grep -q "0 Errors" && echo "$TEST" | grep -q "0 Warnings"
then
exit 0
fi
exit 1
\ No newline at end of file
#!/bin/sh
FILE=./CI
if [ -f "$FILE" ]; then
PHPOPTIONS=""
echo CI
else
phprefdir=`eval echo "~"`
phprefdir="$phprefdir/public_html"
PHPOPTIONS="--ea-reference-dir=$phprefdir "
fi
FILE=vendor/bin/phpstan
if [ -f "$FILE" ]; then
php $PHPOPTIONS $FILE analyse --memory-limit 768M
fi
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment