-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from alexislefebvre/feat-add-php-8.2
feat: add PHP 8.2
- Loading branch information
Showing
8 changed files
with
73 additions
and
0 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
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
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,22 @@ | ||
FROM php:8.2-cli-alpine | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
# copy Composer from official image | ||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer | ||
|
||
# git and unzip are necessary for Composer, mysql-client will install “mysqldump” command | ||
RUN apk add --no-cache git unzip mysql-client \ | ||
freetype-dev libjpeg-turbo-dev libpng-dev \ | ||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ | ||
&& docker-php-ext-install -j$(nproc) gd \ | ||
&& docker-php-ext-install pdo_mysql | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS icu-dev \ | ||
&& apk add --no-cache libintl \ | ||
&& docker-php-ext-install intl | ||
|
||
# necessary for code coverage | ||
RUN apk add --no-cache autoconf gcc g++ make \ | ||
&& pecl install pcov && docker-php-ext-enable pcov \ | ||
&& echo "pcov.enabled=0" >> $PHP_INI_DIR/php.ini |
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,14 @@ | ||
# PHP 8.1 from Alpine Linux with Composer and GD | ||
|
||
Use this image with Drone by using this `.drone.yml`: | ||
|
||
```yml | ||
pipeline: | ||
test: | ||
image: ghcr.io/alexislefebvre/php-8.2-alpine-composer-gd | ||
volumes: | ||
- composer-cache:/root/.composer | ||
commands: | ||
- composer install -vv --profile --no-progress | ||
- php vendor/bin/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM jakzal/phpqa:php8.2-alpine | ||
|
||
RUN apk add --no-cache freetype-dev libjpeg-turbo-dev libpng-dev \ | ||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ | ||
&& docker-php-ext-install -j$(nproc) gd |
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,12 @@ | ||
# jakzal/pqpqa on PHP 8.1 with GD | ||
|
||
Use this image with Drone by using this `.drone.yml`: | ||
|
||
```yml | ||
pipeline: | ||
phpstan: | ||
image: ghcr.io/alexislefebvre/php-8.2-jakzal-phpqa-gd | ||
group: tests | ||
commands: | ||
- phpstan analyse --level 6 src/ --no-progress | ||
``` |