#!/bin/sh
# CI: tests/run.sh's site checks on Alpine (the desktop's part needs
# cont8nuum's .prefix, so it is skipped here). Alpine names PHP php84,
# and run.sh calls php. mariadbd won't run as root, and the container's
# root is all there is, so the tests run as a user of their own.
set -eu
apk add -q php84 php84-curl php84-pdo_mysql php84-mbstring php84-openssl \
	php84-ctype mariadb mariadb-client
ln -sf php84 /usr/bin/php
adduser -D ci
chown -R ci: .
su ci -s /bin/sh -c 'sh tests/run.sh'
