Test that previously installed APT packages are restored
parent
9b9429993e
commit
ef2941603c
|
@ -62,6 +62,10 @@ jobs:
|
||||||
name: Test extensions on Debian 10 (buster)
|
name: Test extensions on Debian 10 (buster)
|
||||||
env: DOCKER_DISTRO=buster
|
env: DOCKER_DISTRO=buster
|
||||||
|
|
||||||
|
- <<: *test-extensions-job-template
|
||||||
|
name: Test restoring previous packages
|
||||||
|
script: docker run --rm --volume "$TRAVIS_BUILD_DIR:/app" --workdir /app php:7.3-stretch ./scripts/test-restore-apt
|
||||||
|
|
||||||
- stage: Update docs
|
- stage: Update docs
|
||||||
name: Update README.md
|
name: Update README.md
|
||||||
if: branch = master AND type = push
|
if: branch = master AND type = push
|
||||||
|
|
|
@ -23,6 +23,7 @@ shfmt $PARAMS \
|
||||||
scripts/common \
|
scripts/common \
|
||||||
scripts/invoke-shfmt \
|
scripts/invoke-shfmt \
|
||||||
scripts/lint \
|
scripts/lint \
|
||||||
|
scripts/test-restore-apt \
|
||||||
scripts/travisci-test-extensions \
|
scripts/travisci-test-extensions \
|
||||||
scripts/travisci-update-readme \
|
scripts/travisci-update-readme \
|
||||||
scripts/update-readme
|
scripts/update-readme
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Let's set a sane environment
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
|
||||||
|
apt-get update -qq
|
||||||
|
apt-get install -qqy libssl-dev
|
||||||
|
|
||||||
|
./install-php-extensions zip
|
||||||
|
|
||||||
|
if test -z "$(dpkg --get-selections | grep -E '^libssl-dev[:\s].*install$')"; then
|
||||||
|
echo 'The libssl-dev APT package has not been restored.' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 'The libssl-dev APT package has been correctly restored.'
|
Loading…
Reference in New Issue