File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
extensions/core/uploadprogress Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ _test-prerequisites: blueprint
10
10
docker pull ubuntu:20.04
11
11
12
12
test-quick : # # Test 8.0 and 8.1 quickly
13
- VERSION=8.0 VARIANT=cli $(MAKE ) _test-version
14
- VERSION=8.1 VARIANT=cli $(MAKE ) _test-version
13
+ VERSION=8.0 VARIANT=cli $(MAKE ) _test-version-quick
14
+ VERSION=8.1 VARIANT=cli $(MAKE ) _test-version-quick
15
15
16
16
test-8.1 : # # Test php8.1 build only
17
17
VERSION=8.1 VARIANT=cli $(MAKE ) _test-version
@@ -30,5 +30,12 @@ _test-version: _test-prerequisites ## Test php build for VERSION="" and VARIANT=
30
30
PHP_VERSION=" $( VERSION) " BRANCH=v4 VARIANT=$(VARIANT ) ./tests-suite/bash_unit -f tap ./tests-suite/* .sh || (notify-send -u critical " Tests failed ($( VERSION) -$( VARIANT) )" && exit 1)
31
31
notify-send -u critical " Tests passed with success ($( VERSION) -$( VARIANT) )"
32
32
33
+ _test-version-quick : _test-prerequisites # # Test php build for VERSION="" and VARIANT="" (without node variants)
34
+ docker buildx bake --load \
35
+ --set " *.platform=$$ (uname -p)" \
36
+ php$$ {VERSION//.}-slim-$(VARIANT ) php$$ {VERSION//.}-$(VARIANT )
37
+ PHP_VERSION=" $( VERSION) " BRANCH=v4 VARIANT=$(VARIANT ) ./tests-suite/bash_unit -f tap ./tests-suite/* .sh || (notify-send -u critical " Tests failed ($( VERSION) -$( VARIANT) )" && exit 1)
38
+ notify-send -u critical " Tests passed with success ($( VERSION) -$( VARIANT) ) - without node-*"
39
+
33
40
clean : # # Clean dangles image after build
34
41
rm -rf /tmp/buildx-cache
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
set -e
4
- export PECL_EXTENSION=uploadprogress
4
+ # if [[ "${PHP_VERSION}" =~ ^7 ]]; then
5
+ # export PECL_EXTENSION=uploadprogress
6
+ # else
7
+ export EXTENSION=uploadprogress
8
+ # fi
5
9
6
10
../docker-install.sh
Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ test_presenceOfPDO() {
17
17
RESULT=$( docker run ${RUN_OPTIONS} --rm " ${REPO} :${TAG_PREFIX}${PHP_VERSION} -${BRANCH} -slim-${BRANCH_VARIANT} " php -m | tail -n +1 | grep --color=never PDO)
18
18
assert_equals " PDO" " ${RESULT} " " Missing php-PDO"
19
19
}
20
+ # ################################################################
21
+ # # Let's check that uploadprogress is enabled explicitly with fat
22
+ # ################################################################
23
+ test_presenceOfUploadprogressOnFat () {
24
+ RESULT=$( docker run ${RUN_OPTIONS} -e " PHP_EXTENSIONS=uploadprogress" --rm " ${REPO} :${TAG_PREFIX}${PHP_VERSION} -${BRANCH} -${BRANCH_VARIANT} " php -m | tail -n +1 | grep --color=never uploadprogress)
25
+ assert_equals " uploadprogress" " ${RESULT} " " Missing php-uploadprogress"
26
+ }
20
27
# ###########################################################
21
28
# # Let's check that the extensions are enabled when composer is run
22
29
# ###########################################################
You can’t perform that action at this time.
0 commit comments