bump CI jobs & utility scripts to php83
This commit is contained in:
parent
4b3cf17d8d
commit
14ad8b21d5
|
@ -56,7 +56,7 @@ phpdoc:
|
|||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $PHPDOC_DEPLOY_SSH_KEY != null
|
||||
script:
|
||||
- php82 /phpDocumentor.phar -d classes -d include -t phpdoc --visibility=public
|
||||
- php83 /phpDocumentor.phar -d classes -d include -t phpdoc --visibility=public
|
||||
- mkdir -p ~/.ssh &&
|
||||
cp ${PHPDOC_DEPLOY_SSH_KEY} ~/.ssh/id_ed25519 &&
|
||||
chmod 0600 ~/.ssh/id_ed25519
|
||||
|
@ -74,7 +74,7 @@ phpunit-integration:
|
|||
- export TTRSS_DB_USER=postgres
|
||||
- export TTRSS_DB_NAME=postgres
|
||||
- export TTRSS_DB_PASS=password
|
||||
- php82 vendor/bin/phpunit --group integration --do-not-cache-result --log-junit phpunit-report.xml --coverage-cobertura phpunit-coverage.xml --coverage-text --colors=never
|
||||
- php83 vendor/bin/phpunit --group integration --do-not-cache-result --log-junit phpunit-report.xml --coverage-cobertura phpunit-coverage.xml --coverage-text --colors=never
|
||||
artifacts:
|
||||
when: always
|
||||
reports:
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan \
|
||||
--workdir /app registry.fakecake.org/ci/php8.2-alpine:3.18 php82 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw analyze .
|
||||
export PHP_IMAGE=registry.fakecake.org/infra/php8.3-alpine:3.19
|
||||
|
||||
docker run --rm -v $(pwd):/app -v /tmp/phpstan:/tmp/phpstan \
|
||||
--workdir /app ${PHP_IMAGE} \
|
||||
php83 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw analyze .
|
||||
|
||||
echo All done, RC=$?.
|
||||
|
||||
while true; do
|
||||
|
@ -9,8 +13,10 @@ while true; do
|
|||
(
|
||||
MODIFIED=$(git ls-files -m | grep .php)
|
||||
|
||||
docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan \
|
||||
--workdir /app registry.fakecake.org/ci/php8.2-alpine:3.18 php82 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw analyze ${MODIFIED}
|
||||
docker run --rm -v $(pwd):/app -v /tmp/phpstan:/tmp/phpstan \
|
||||
--workdir /app ${PHP_IMAGE} \
|
||||
php83 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw analyze .
|
||||
|
||||
echo All done, RC=$?.
|
||||
)
|
||||
sleep 1
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker run --rm -v $(pwd):/app -e API_URL=${API_URL} \
|
||||
--workdir /app registry.fakecake.org/ci/php8.2-alpine:3.18 php82 -d memory_limit=-1 ./vendor/bin/phpunit --group integration
|
||||
|
||||
|
||||
--workdir /app registry.fakecake.org/infra/php8.3-alpine:3.19 \
|
||||
php83 -d memory_limit=-1 ./vendor/bin/phpunit --group integration
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker run --rm -v $(pwd):/app \
|
||||
--workdir /app registry.fakecake.org/ci/php8.2-alpine:3.18 php82 -d memory_limit=-1 ./vendor/bin/phpunit --exclude integration
|
||||
|
||||
|
||||
--workdir /app registry.fakecake.org/infra/php8.3-alpine:3.19 \
|
||||
php83 -d memory_limit=-1 ./vendor/bin/phpunit --exclude integration
|
||||
|
|
Loading…
Reference in New Issue