From cfc3ca1bbb9ac617006a5af575676eeb6e520390 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 29 Sep 2023 14:05:33 +0300 Subject: Add support for *-build-*email package manifest value overrides in bdep-ci --- tests/ci.testscript | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'tests/ci.testscript') diff --git a/tests/ci.testscript b/tests/ci.testscript index d604aa7..9b365d3 100644 --- a/tests/ci.testscript +++ b/tests/ci.testscript @@ -200,6 +200,42 @@ windows = ($cxx.target.class == 'windows') EOE } + : package-build-emails + : + { + $clone_prj; + + $* --override 'default-build-email: foo@example.com' \ + --override 'default-build-warning-email: bar@example.com' 2>>~%EOE% + %CI request is queued.*% + %reference: .+% + EOE + } + + : common-package-build-emails + : + { + $clone_prj; + + $* --build-email 'foo@example.com' \ + --override 'default-build-warning-email: bar@example.com' 2>>EOE != 0 + error: invalid --override option value: 'default-build-warning-email' override specified together with 'build-email' override + info: override: default-build-warning-email: bar@example.com + EOE + } + + : package-build-common-emails + : + { + $clone_prj; + + $* --override 'default-build-warning-email: foo@example.com' \ + --override 'build-error-email: bar@example.com' 2>>EOE != 0 + error: invalid --override option value: 'build-error-email' override specified together with 'default-build-warning-email' override + info: override: build-error-email: bar@example.com + EOE + } + : build-configs-constraints : { -- cgit v1.1