Skip to content

Commit 95a5645

Browse files
authored
Merge pull request #128 from WyriHaximus/php-8.4-PLUS-QA-updates
PHP 8.4 + QA updates
2 parents 681a11e + 79279f8 commit 95a5645

File tree

5 files changed

+994
-1504
lines changed

5 files changed

+994
-1504
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ SHELL=bash
44
.PHONY: *
55

66
CONTAINER_REGISTRY_REPO="ghcr.io/wyrihaximusnet/php"
7-
COMPOSER_SHOW_EXTENSION_LIST_PROD=$(shell composer show -t | grep -o "\-\-\(ext-\).\+" | sort | uniq | cut -d- -f4- | tr -d '\n' | grep . | sed '/^$$/d' | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],' | sed 's/.$$//')
8-
COMPOSER_SHOW_EXTENSION_LIST_DEV=$(shell composer show -s | grep -o "\(ext-\).\+" | sort | uniq | cut -d- -f2- | cut -d" " -f1 | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],')
7+
COMPOSER_SHOW_EXTENSION_LIST_PROD=$(shell ((command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" -w `pwd` ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim-dev composer show -t) | grep -o "\-\-\(ext-\).\+" | sort | uniq | cut -d- -f4- | tr -d '\n' | grep . | sed '/^$$/d' | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],' | sed 's/.$$//')
8+
COMPOSER_SHOW_EXTENSION_LIST_DEV=$(shell ((command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" -w `pwd` ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim-dev composer show -s) | grep -o "\(ext-\).\+" | sort | uniq | cut -d- -f2- | cut -d" " -f1 | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],')
99
COMPOSER_SHOW_EXTENSION_LIST=$(shell echo "${COMPOSER_SHOW_EXTENSION_LIST_PROD},${COMPOSER_SHOW_EXTENSION_LIST_DEV}")
1010
SLIM_DOCKER_IMAGE=$(shell php -r 'echo count(array_intersect(["gd", "vips"], explode(",", "${COMPOSER_SHOW_EXTENSION_LIST}"))) > 0 ? "" : "-slim";')
1111
NTS_OR_ZTS_DOCKER_IMAGE=$(shell php -r 'echo count(array_intersect(["parallel"], explode(",", "${COMPOSER_SHOW_EXTENSION_LIST}"))) > 0 ? "zts" : "nts";')
1212
PHP_VERSION:=$(shell (((command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim php -r "echo json_decode(file_get_contents('`pwd`/composer.json'), true)['config']['platform']['php'];") || echo "8.3") | php -r "echo str_replace('|', '.', explode('.', implode('|', explode('.', stream_get_contents(STDIN), 2)), 2)[0]);")
1313
CONTAINER_NAME=$(shell echo "${CONTAINER_REGISTRY_REPO}:${PHP_VERSION}-${NTS_OR_ZTS_DOCKER_IMAGE}-alpine${SLIM_DOCKER_IMAGE}-dev")
14-
COMPOSER_CACHE_DIR=$(shell composer config --global cache-dir -q || echo ${HOME}/.composer-php/cache)
14+
COMPOSER_CACHE_DIR=$(shell (command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" -w `pwd` ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim-dev composer config --global cache-dir -q || echo ${HOME}/.composer-php/cache)
1515
COMPOSER_CONTAINER_CACHE_DIR=$(shell ((command -v docker >/dev/null 2>&1) && docker run --rm -it ${CONTAINER_NAME} composer config --global cache-dir -q) || echo ${HOME}/.composer-php/cache)
1616

1717
ifneq ("$(wildcard /.you-are-in-a-wyrihaximus.net-php-docker-image)","")

composer.json

Lines changed: 53 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,57 @@
11
{
2-
"name": "wyrihaximus/compress",
3-
"description": "Compress marker interface and utility compressors",
4-
"license": "MIT",
5-
"keywords": [
6-
"compress"
7-
],
8-
"authors": [
9-
{
10-
"name": "Cees-Jan Kiewiet",
11-
"email": "[email protected]",
12-
"homepage": "http://wyrihaximus.net/"
13-
}
14-
],
15-
"require": {
16-
"php": "^8.3",
17-
"wyrihaximus/compress-contracts": "^1.0"
18-
},
19-
"require-dev": {
20-
"wyrihaximus/compress-test-utilities": "^3.1.0",
21-
"wyrihaximus/makefiles": "^0.5.0"
22-
},
23-
"autoload": {
24-
"psr-4": {
25-
"WyriHaximus\\Compress\\": "src/"
26-
}
27-
},
28-
"autoload-dev": {
29-
"psr-4": {
30-
"WyriHaximus\\Compress\\Tests\\": "tests/"
31-
}
2+
"name": "wyrihaximus/compress",
3+
"description": "Compress marker interface and utility compressors",
4+
"license": "MIT",
5+
"keywords": [
6+
"compress"
7+
],
8+
"authors": [
9+
{
10+
"name": "Cees-Jan Kiewiet",
11+
"email": "[email protected]",
12+
"homepage": "http://wyrihaximus.net/"
13+
}
14+
],
15+
"require": {
16+
"php": "^8.4",
17+
"wyrihaximus/compress-contracts": "^1.0"
18+
},
19+
"require-dev": {
20+
"wyrihaximus/compress-test-utilities": "^3.2.0",
21+
"wyrihaximus/makefiles": "^0.6.0"
22+
},
23+
"autoload": {
24+
"psr-4": {
25+
"WyriHaximus\\Compress\\": "src/"
26+
}
27+
},
28+
"autoload-dev": {
29+
"psr-4": {
30+
"WyriHaximus\\Compress\\Tests\\": "tests/"
31+
}
32+
},
33+
"config": {
34+
"allow-plugins": {
35+
"dealerdirect/phpcodesniffer-composer-installer": true,
36+
"ergebnis/composer-normalize": true,
37+
"infection/extension-installer": true,
38+
"localheinz/composer-normalize": true,
39+
"ocramius/package-versions": true,
40+
"phpstan/extension-installer": true,
41+
"wyrihaximus/makefiles": true,
42+
"wyrihaximus/test-utilities": true
3243
},
33-
"config": {
34-
"allow-plugins": {
35-
"dealerdirect/phpcodesniffer-composer-installer": true,
36-
"ergebnis/composer-normalize": true,
37-
"infection/extension-installer": true,
38-
"localheinz/composer-normalize": true,
39-
"ocramius/package-versions": true,
40-
"phpstan/extension-installer": true,
41-
"wyrihaximus/makefiles": true
42-
},
43-
"platform": {
44-
"php": "8.3.13"
45-
},
46-
"sort-packages": true
44+
"platform": {
45+
"php": "8.4.13"
4746
},
48-
"scripts": {
49-
"post-install-cmd": [
50-
"composer normalize"
51-
],
52-
"post-update-cmd": [
53-
"composer normalize"
54-
]
55-
}
47+
"sort-packages": true
48+
},
49+
"scripts": {
50+
"post-install-cmd": [
51+
"make on-install-or-update || true"
52+
],
53+
"post-update-cmd": [
54+
"make on-install-or-update || true"
55+
]
56+
}
5657
}

0 commit comments

Comments
 (0)