Skip to content

Commit e64962a

Browse files
authored
Merge pull request #116 from WyriHaximus/php-8.4-PLUS-QA-updates
PHP 8.4 + QA updates
2 parents 1532a57 + cfca06d commit e64962a

File tree

6 files changed

+846
-1391
lines changed

6 files changed

+846
-1391
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: 58 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,62 @@
11
{
2-
"name": "wyrihaximus/js-compress",
3-
"description": "Compress/minify your JavaScript",
4-
"license": "MIT",
5-
"keywords": [
6-
"html",
7-
"compress"
8-
],
9-
"authors": [
10-
{
11-
"name": "Cees-Jan Kiewiet",
12-
"email": "[email protected]",
13-
"homepage": "http://wyrihaximus.net/"
14-
}
15-
],
16-
"require": {
17-
"php": "^8.3",
18-
"matthiasmullie/minify": "^1.3.73",
19-
"wikimedia/minify": "^2.9",
20-
"wyrihaximus/compress": "^2.2",
21-
"wyrihaximus/compress-contracts": "^1.0"
22-
},
23-
"require-dev": {
24-
"wyrihaximus/compress-test-utilities": "^3.1.0",
25-
"wyrihaximus/makefiles": "^0.5.0",
26-
"wyrihaximus/test-utilities": "^7.4.0"
27-
},
28-
"autoload": {
29-
"psr-4": {
30-
"WyriHaximus\\JsCompress\\": "src/"
31-
}
32-
},
33-
"autoload-dev": {
34-
"psr-4": {
35-
"WyriHaximus\\JsCompress\\Tests\\": "tests/"
36-
}
2+
"name": "wyrihaximus/js-compress",
3+
"description": "Compress/minify your JavaScript",
4+
"license": "MIT",
5+
"keywords": [
6+
"html",
7+
"compress"
8+
],
9+
"authors": [
10+
{
11+
"name": "Cees-Jan Kiewiet",
12+
"email": "[email protected]",
13+
"homepage": "http://wyrihaximus.net/"
14+
}
15+
],
16+
"require": {
17+
"php": "^8.4",
18+
"matthiasmullie/minify": "^1.3.73",
19+
"wikimedia/minify": "^2.9",
20+
"wyrihaximus/compress": "^2.2",
21+
"wyrihaximus/compress-contracts": "^1.0"
22+
},
23+
"require-dev": {
24+
"wyrihaximus/compress-test-utilities": "^3.2.0",
25+
"wyrihaximus/makefiles": "^0.6.0",
26+
"wyrihaximus/test-utilities": "^8.1.0"
27+
},
28+
"autoload": {
29+
"psr-4": {
30+
"WyriHaximus\\JsCompress\\": "src/"
31+
}
32+
},
33+
"autoload-dev": {
34+
"psr-4": {
35+
"WyriHaximus\\JsCompress\\Tests\\": "tests/"
36+
}
37+
},
38+
"config": {
39+
"allow-plugins": {
40+
"composer/package-versions-deprecated": true,
41+
"dealerdirect/phpcodesniffer-composer-installer": true,
42+
"ergebnis/composer-normalize": true,
43+
"icanhazstring/composer-unused": true,
44+
"infection/extension-installer": true,
45+
"phpstan/extension-installer": true,
46+
"wyrihaximus/makefiles": true,
47+
"wyrihaximus/test-utilities": true
3748
},
38-
"config": {
39-
"allow-plugins": {
40-
"composer/package-versions-deprecated": true,
41-
"dealerdirect/phpcodesniffer-composer-installer": true,
42-
"ergebnis/composer-normalize": true,
43-
"icanhazstring/composer-unused": true,
44-
"infection/extension-installer": true,
45-
"phpstan/extension-installer": true,
46-
"wyrihaximus/makefiles": true
47-
},
48-
"platform": {
49-
"php": "8.3.13"
50-
},
51-
"sort-packages": true
49+
"platform": {
50+
"php": "8.4.13"
5251
},
53-
"scripts": {
54-
"post-install-cmd": [
55-
"composer normalize"
56-
],
57-
"post-update-cmd": [
58-
"composer normalize"
59-
]
60-
}
52+
"sort-packages": true
53+
},
54+
"scripts": {
55+
"post-install-cmd": [
56+
"make on-install-or-update || true"
57+
],
58+
"post-update-cmd": [
59+
"make on-install-or-update || true"
60+
]
61+
}
6162
}

0 commit comments

Comments
 (0)