From 20d9852ba3c081ed7813232308bab9c922f9a261 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Thu, 29 Jul 2021 10:23:47 +0100 Subject: [PATCH] Add circleci matrix job to test older Wagtail versions as per https://circleci.com/blog/circleci-matrix-jobs/ (hopefully) --- .circleci/config.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 108ac6e..5c0db00 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,15 +5,19 @@ orbs: jobs: build-and-test: + parameters: + wagtail-version: + default: "wagtail" + type: string executor: python/default steps: - checkout - restore_cache: - key: pip-{{ .Branch }} - - run: pip install wagtail + key: pip-{{ .Branch }}-<< parameters.wagtail-version >> + - run: pip install "<< parameters.wagtail-version >>" - run: pip install -e . - save_cache: - key: pip-{{ .Branch }} + key: pip-{{ .Branch }}-<< parameters.wagtail-version >> paths: - "~/.cache/pip" - run: @@ -35,7 +39,14 @@ jobs: workflows: main: jobs: - - build-and-test + - build-and-test: + wagtail-version: "wagtail" + - build-and-test: + wagtail-version: "wagtail>=2.8,<2.9" + - build-and-test: + wagtail-version: "wagtail>=2.10,<2.11" + - build-and-test: + wagtail-version: "wagtail>=2.12,<2.13" nightly: jobs: - nightly-wagtail-test