mirror of https://github.com/zulip/zulip.git
ci: Add Debian bullseye to production test suite.
This commit is contained in:
parent
feb720b463
commit
303e7b9701
|
@ -127,6 +127,11 @@ jobs:
|
|||
is_buster: true
|
||||
os: buster
|
||||
|
||||
- docker_image: zulip/ci:bullseye
|
||||
name: Bullseye production install
|
||||
is_bullseye: true
|
||||
os: bullseye
|
||||
|
||||
name: ${{ matrix.name }}
|
||||
container: ${{ matrix.docker_image }}
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -24,6 +24,8 @@ class zulip::profile::base {
|
|||
/^9\.[0-9]*$/ => 'stretch',
|
||||
/^10\.[0-9]*$/ => 'buster',
|
||||
/^11\.[0-9]*$/ => 'bullseye',
|
||||
# This next line is temporary until bullseye releases.
|
||||
/bullseye\/sid/ => 'bullseye',
|
||||
# Ubuntu releases
|
||||
'12.04' => 'precise',
|
||||
'14.04' => 'trusty',
|
||||
|
|
|
@ -105,6 +105,14 @@ RUN export git_version=$(git --version | cut -d ' ' -f3 | cut -d 'v' -f2) && \
|
|||
sudo apt-get install -y git; \
|
||||
fi
|
||||
|
||||
# Remove systemd package as it is not required and hinders with install
|
||||
RUN if [ ! "$(dpkg-query -f='$(Version)' --show systemd)" = "" ]; then \
|
||||
apt-get remove --purge --auto-remove systemd -y && \
|
||||
echo 'Package: systemd\nPin: release *\nPin-Priority: -1' | sudo tee -a /etc/apt/preferences.d/systemd && \
|
||||
echo '\n\nPackage: *systemd*\nPin: release *\nPin-Priority: -1' | sudo tee -a /etc/apt/preferences.d/systemd && \
|
||||
echo '\nPackage: systemd:amd64\nPin: release *\nPin-Priority: -1' | sudo tee -a /etc/apt/preferences.d/systemd; \
|
||||
fi
|
||||
|
||||
ARG USERNAME=github
|
||||
RUN groupadd --gid 3434 $USERNAME \
|
||||
&& useradd --uid 3434 --gid $USERNAME --shell /bin/bash --create-home $USERNAME \
|
||||
|
|
|
@ -6,3 +6,6 @@ focal:
|
|||
|
||||
buster:
|
||||
base_image: buildpack-deps:buster-scm
|
||||
|
||||
bullseye:
|
||||
base_image: buildpack-deps:bullseye-scm
|
||||
|
|
|
@ -71,7 +71,7 @@ nginx_version="$(nginx -v 2>&1 | awk '{print $3, $4}' | xargs)"
|
|||
|
||||
# Simplify the diff by getting replacing 4-5 digit length numbers with <Length>.
|
||||
sed -i 's|Length: [0-9]\+\( [(][0-9]\+[.][0-9]K[)]\)\?|Length: <Length>|' /tmp/http-headers-processed
|
||||
if [ "$os_version_codename" = "buster" ]; then
|
||||
if [ "$os_version_codename" = "buster" ] || [ "$os_version_codename" = "bullseye" ]; then
|
||||
success_header_file="/tmp/success-http-headers.template.debian.txt"
|
||||
check_header
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue