From: Joe Orton Date: Mon, 7 Mar 2022 11:04:26 +0000 (+0000) Subject: Adjust Travis branch-matching conditions to treat any X-Git-Tag: 2.5.0-alpha2-ci-test-only~460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=508324a39a9ed63ba02800488fb2c9c2871ffc9d;p=thirdparty%2Fapache%2Fhttpd.git Adjust Travis branch-matching conditions to treat any branch starting "2.4" like 2.4.x (in addition to "candidate-2.4"). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898671 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/.travis.yml b/.travis.yml index efe827e85c9..01bed9c783f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,8 +38,8 @@ env: # definitions to either: # condition_24x_only => run the job only for 2.4.x # condition_not_24x => run the job everywhere EXCEPT 2.4.x -_cond1: &condition_24x_only (branch is present AND (branch = 2.4.x OR branch ~= /^candidate-2.4/)) OR (tag is present AND tag ~= /^2.4/) -_cond2: &condition_not_24x (branch is not present OR (branch != 2.4.x AND branch !~ /^candidate-2.4/)) AND (tag is not present OR tag !~ /^2.4/) +_cond1: &condition_24x_only (branch is present AND (branch ~= /^2.4/ OR branch ~= /^candidate-2.4/)) OR (tag is present AND tag ~= /^2.4/) +_cond2: &condition_not_24x (branch is not present OR (branch !~ /^2.4/ AND branch !~ /^candidate-2.4/)) AND (tag is not present OR tag !~ /^2.4/) jobs: include: diff --git a/test/test_travis_conditions.sh b/test/test_travis_conditions.sh index 32f663ae25d..82794eb76d5 100755 --- a/test/test_travis_conditions.sh +++ b/test/test_travis_conditions.sh @@ -34,6 +34,9 @@ testit '{"tag": "2.4.49"}' 2.4.x testit '{"tag": "2.5.59"}' trunk testit '{"branch": "2.4.x"}' 2.4.x testit '{"branch": "candidate-2.4.49"}' 2.4.x +testit '{"branch": "2.4.55-candidate"}' 2.4.x +testit '{"branch": "2.4-backport-branch"}' 2.4.x +testit '{"branch": "2.4.x-something"}' 2.4.x testit '{"branch": "2.5.0"}' trunk testit '{"branch": "2.5.x"}' trunk testit '{"branch": "trunk"}' trunk