From 9edf4147af3cf4235a74aa509947e61ae5f78360 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 13 Jun 2022 13:00:29 +0545 Subject: [PATCH] Add skipIfUnchanged logic for litmus tests --- .drone.star | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.star b/.drone.star index 2c48200af8..5825a171f4 100644 --- a/.drone.star +++ b/.drone.star @@ -1809,7 +1809,7 @@ def skipIfUnchanged(ctx, type): skip = base + unit if type == "unit-tests": skip = base + acceptance - if type == "build-binary" or type == "build-docker": + if type == "build-binary" or type == "build-docker" or type == "litmus": skip = base + unit + acceptance if len(skip) == 0: @@ -2472,7 +2472,8 @@ def litmus(ctx, storage): "base": "/drone", "path": "src", }, - "steps": restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin/ocis") + + "steps": skipIfUnchanged(ctx, "litmus") + + restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin/ocis") + ocisServer(storage) + setupForLitmus() + [