From 5b79975808c9d4bb04b64feeec1bb8204c0d7357 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 17 Nov 2022 12:39:54 +0100 Subject: woodpecker fix conditional branch execution --- .woodpecker.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index ba2c7b5..a9efb82 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,15 +1,20 @@ pipeline: - current: + current-emacs: image: silex/emacs:cask - commands: - - emacs --version - - cask install - - cask emacs -batch -l test/ert-helper.el -f ert-run-tests-batch-and-exit - last: + when: + branch: [main, develop] + commands: + - emacs --version + - cask install + - cask emacs -batch -l test/ert-helper.el -f ert-run-tests-batch-and-exit + + last-emacs: image: silex/emacs:27-ci-cask - commands: - - emacs --version - - cask install - - cask emacs -batch -l test/ert-helper.el -f ert-run-tests-batch-and-exit + when: + branch: [main, develop] + commands: + - emacs --version + - cask install + - cask emacs -batch -l test/ert-helper.el -f ert-run-tests-batch-and-exit + -+branches: [ main, develop ] -- cgit v1.2.3