mirror of
https://github.com/e107inc/e107.git
synced 2025-07-16 20:41:27 +02:00
Enable GD with JPEG support (imagecreatefromjpeg()) in CI tests
Needed for e107Test::testGetThumb()
This commit is contained in:
30
.github/workflows/test-unit.yml
vendored
30
.github/workflows/test-unit.yml
vendored
@@ -56,12 +56,30 @@ jobs:
|
|||||||
grep -m1 -P '^deb http://deb.debian.org/debian [a-z]+ main' /etc/apt/sources.list |
|
grep -m1 -P '^deb http://deb.debian.org/debian [a-z]+ main' /etc/apt/sources.list |
|
||||||
awk '{print $3}'
|
awk '{print $3}'
|
||||||
)
|
)
|
||||||
apt-get -t "${DEBIAN_RELEASE}-backports" install -y git zip libzip-dev
|
apt-get -t "${DEBIAN_RELEASE}-backports" install -y git zip libzip-dev libpng-dev libjpeg-dev
|
||||||
|
|
||||||
- name: PECL zip
|
- name: Install PHP zip extension
|
||||||
run: docker-php-ext-install zip
|
run: docker-php-ext-install zip
|
||||||
|
|
||||||
- name: PECL xdebug
|
- name: Configure PHP gd extension with JPEG support
|
||||||
|
run: |
|
||||||
|
if [ $(php -r 'printf(version_compare(PHP_VERSION, "7.4.0", ">=") ? 1 : 0);') = '1' ]
|
||||||
|
then
|
||||||
|
docker-php-ext-configure gd --with-jpeg
|
||||||
|
else
|
||||||
|
docker-php-ext-configure gd --with-jpeg-dir=/usr
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Install PHP gd extension
|
||||||
|
run: docker-php-ext-install gd
|
||||||
|
|
||||||
|
- name: Install PHP pdo_mysql extension
|
||||||
|
run: docker-php-ext-install pdo_mysql
|
||||||
|
|
||||||
|
- name: Install PHP mysqli extension
|
||||||
|
run: docker-php-ext-install mysqli
|
||||||
|
|
||||||
|
- name: PECL install xdebug
|
||||||
run: |
|
run: |
|
||||||
if [ $(php -r 'printf(version_compare(PHP_VERSION, "7.0.0", ">=") ? 1 : 0);') = '1' ]
|
if [ $(php -r 'printf(version_compare(PHP_VERSION, "7.0.0", ">=") ? 1 : 0);') = '1' ]
|
||||||
then
|
then
|
||||||
@@ -71,12 +89,6 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
docker-php-ext-enable xdebug
|
docker-php-ext-enable xdebug
|
||||||
|
|
||||||
- name: Install PHP pdo_mysql extension
|
|
||||||
run: docker-php-ext-install pdo_mysql
|
|
||||||
|
|
||||||
- name: Install PHP mysqli extension
|
|
||||||
run: docker-php-ext-install mysqli
|
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install Composer
|
- name: Install Composer
|
||||||
|
Reference in New Issue
Block a user