From 67028a7eac5bd7ea8d4d0eecfd7141d111b2bc80 Mon Sep 17 00:00:00 2001 From: Geoff Jacobs Date: Mon, 19 Aug 2024 09:08:12 +1000 Subject: [PATCH] ITPLT-3977 adding pre-commit build step --- bitbucket-pipelines.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index cd9ffc9..a7acad5 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -11,12 +11,22 @@ options: definitions: caches: ansible-collections: ansible_collections + pre-commit: ~/.cache/pre-commit services: docker: memory: 4096 pipelines: default: + - step: + name: Pre-commit + image: python:3.9 + caches: + - pre-commit + script: + - apt update && apt install -y pipenv + - pipenv sync --dev + - pre-commit run --all-files - step: name: Pre Parallelization stage script: