From b2d586fd41ed687e9deca8a5f3bc668896f29c86 Mon Sep 17 00:00:00 2001 From: Sainnhe Park Date: Tue, 31 Jan 2023 16:58:05 +0800 Subject: [PATCH] Conditional tests --- .woodpecker/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 5e709c4..c48e610 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -2,12 +2,17 @@ branches: master pipeline: test: + when: + path: [".woodpecker/*", "include/*", "src/*", "tests/*", "CMakeLists.txt"] image: docker.io/sainnhe/cmake:latest commands: - cmake . - cmake --build . --parallel $(nproc) --target all - ctest notify: + when: + status: + - failure image: docker.io/sainnhe/mailer:latest commands: - mailer @@ -25,6 +30,3 @@ pipeline: environment: - MAILER_SUBJECT=Run Failed - MAILER_BODY=${CI_BUILD_LINK} - when: - status: - - failure