From 3ac9982411294845cfb2724784371d91b9f2aca1 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 22 Apr 2020 14:08:14 -0700 Subject: [PATCH] circleci: Test provision and upgrade error messages on Ubuntu 16.04. Signed-off-by: Anders Kaseorg --- .circleci/config.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 21695947f5..f36341b8e3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -105,6 +105,20 @@ aliases: command: | mispipe ./tools/ci/production ts + - &check_xenial_provision_error + run: + name: check tools/provision error message on xenial + command: | + ! tools/provision > >(tee provision.out) + grep -Fqx 'CRITICAL:root:Unsupported platform: ubuntu 16.04' provision.out + + - &check_xenial_upgrade_error + run: + name: check scripts/lib/upgrade-zulip-stage-2 error message on xenial + command: | + ! sudo scripts/lib/upgrade-zulip-stage-2 2> >(tee upgrade.err >&2) + grep -Fq 'upgrade-zulip-stage-2: Unsupported platform: ubuntu 16.04' upgrade.err + jobs: "bionic-backend-frontend-python3.6": docker: @@ -185,6 +199,18 @@ jobs: - *save_cache_package_json - *save_cache_requirements + "xenial-error-messages": + docker: + - image: gregprice/circleci:xenial-python-4.test + + working_directory: ~/zulip + + steps: + - checkout + + - *check_xenial_provision_error + - *check_xenial_upgrade_error + workflows: version: 2 build: @@ -192,3 +218,4 @@ workflows: - "bionic-backend-frontend-python3.6" # - "focal-backend-frontend-python3.8" - "bionic-production-python3.6" + - "xenial-error-messages"