Skip to content

Commit

Permalink
Merge pull request #9 from mlocati/master
Browse files Browse the repository at this point in the history
Fork Sync: Update from parent repository
  • Loading branch information
vanderletenpartners authored Aug 1, 2023
2 parents 0e219f4 + 580cdcc commit ea50859
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 16 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- run: ./install-php-extensions ${{ matrix.source }}
test_upgrading_icu_data_en:
name: Test that icu-data-en can be upgraded
needs:
- check_syntax_data
- check_syntax_shell
- check_syntax_php
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: docker run --rm --volume "$(pwd):/app" --workdir /app php:8.2-cli-alpine ./scripts/test-icu-data-en-upgradable
34 changes: 18 additions & 16 deletions install-php-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -3157,7 +3157,7 @@ installRemoteModule() {
installRemoteModule_version=3.12.4
else
# See https://github.com/protocolbuffers/protobuf/issues/10619
installRemoteModule_version=3.23.3
installRemoteModule_version=3.23.4
fi
fi
;;
Expand Down Expand Up @@ -4116,25 +4116,27 @@ cleanup() {
fi
done
fi
if test -n "$PACKAGES_VOLATILE"; then
printf '### REMOVING UNNEEDED PACKAGES ###\n'
case "$DISTRO" in
alpine)
case "$DISTRO" in
alpine)
if stringInList icu-libs "${PACKAGES_PERSISTENT_NEW:-}" && stringInList icu-data-en "${PACKAGES_PERSISTENT_NEW:-}"; then
apk del icu-data-en >/dev/null 2>&1 || true
fi
if test -n "$PACKAGES_VOLATILE"; then
printf '### REMOVING UNNEEDED PACKAGES ###\n'
apk del --purge $PACKAGES_VOLATILE
;;
debian)
fi
;;
debian)
if test -n "$PACKAGES_VOLATILE"; then
printf '### REMOVING UNNEEDED PACKAGES ###\n'
DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y $PACKAGES_VOLATILE
;;
esac
fi
if test -n "$PACKAGES_PREVIOUS"; then
case "$DISTRO" in
debian)
fi
if test -n "$PACKAGES_PREVIOUS"; then
printf '### RESTORING PREVIOUSLY INSTALLED PACKAGES ###\n'
DEBIAN_FRONTEND=noninteractive apt-get install -qqy --no-install-recommends --no-upgrade $IPE_APTGET_INSTALLOPTIONS $PACKAGES_PREVIOUS
;;
esac
fi
fi
;;
esac
docker-php-source delete
rm -rf /tmp/src
rm -rf /tmp/pickle
Expand Down
10 changes: 10 additions & 0 deletions scripts/test-icu-data-en-upgradable
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

# Let's set a sane environment
set -o errexit
set -o nounset

IPE_ICU_EN_ONLY=1 CI=true ./install-php-extensions intl

apk update
apk add --simulate chromium

0 comments on commit ea50859

Please sign in to comment.