From: Joe Orton Date: Mon, 23 Mar 2020 12:08:01 +0000 (+0000) Subject: Better define conditions for skipping tests on 2.4.x or non-2.4.x. X-Git-Tag: 2.5.0-alpha2-ci-test-only~1567 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e23342736c405c392d2d2a47d67de48fabc1883;p=thirdparty%2Fapache%2Fhttpd.git Better define conditions for skipping tests on 2.4.x or non-2.4.x. Use YAML anchors and references to avoid copy&pasting, hopefully the syntax remains reasonably readable. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875540 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/.travis.yml b/.travis.yml index 2b10196d73b..be3d80809ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,13 @@ env: global: - MFLAGS=-j2 +# This defines two condition anchors which can be used in job +# 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 (tag is present AND tag ~= /^2.4/) +_cond2: &condition_not_24x (branch is present AND branch != 2.4.x) OR (tag is present AND tag !~ /^2.4/) + jobs: include: - name: Linux Ubuntu, Default module set @@ -98,7 +105,7 @@ jobs: env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode NOTEST_CFLAGS=-Werror CC=gcc-7" SKIP_TESTING=1 # ------------------------------------------------------------------------- - - if: branch = trunk + - if: *condition_not_24x name: Linux Ubuntu, PCRE 1, GCC 7 maintainer-mode w/-Werror os: linux env: CONFIG="--enable-mods-shared=reallyall --with-pcre=/usr/bin/pcre-config --enable-maintainer-mode NOTEST_CFLAGS=-Werror CC=gcc-7" @@ -144,19 +151,19 @@ jobs: - libpcre2-dev # ------------------------------------------------------------------------- # MFLAGS= works around https://bz.apache.org/bugzilla/show_bug.cgi?id=63942 - - if: branch = trunk + - if: *condition_not_24x name: Linux Ubuntu, Regenerate ap_expr os: linux env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode NOTEST_CFLAGS=-Werror" BUILDCONFIG="--with-regen-expr" MFLAGS= # ------------------------------------------------------------------------- - - if: branch = trunk + - if: *condition_not_24x name: Linux Ubuntu, APR trunk env: APR_VERSION=trunk APR_CONFIG="--with-crypto" CONFIG="--enable-mods-shared=reallyall" # ------------------------------------------------------------------------- - - if: branch = 2.4.x or tag =~ /^2.4/ + - if: *condition_24x_only name: Linux Ubuntu Xenial, all-modules, system APR/APR-util os: linux dist: xenial @@ -208,17 +215,17 @@ jobs: - libpcre2-dev - litmus # ------------------------------------------------------------------------- - - if: branch = 2.4.x or tag =~ /^2.4/ + - if: *condition_24x_only name: Linux Ubuntu, APR 1.5.1, APR-util 1.5.4 env: APR_VERSION=1.5.1 APU_VERSION=1.5.4 CONFIG="--enable-mods-shared=reallyall" # ------------------------------------------------------------------------- - - if: branch = 2.4.x or tag =~ /^2.4/ + - if: *condition_24x_only name: Linux Ubuntu, APR 1.4.8, APR-util 1.4.2 env: APR_VERSION=1.4.8 APU_VERSION=1.4.2 CONFIG="--enable-mods-shared=reallyall" # ------------------------------------------------------------------------- - - if: branch = trunk + - if: *condition_not_24x name: Linux Ubuntu, UBSan env: NOTEST_CFLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined" NOTEST_LIBS=-lubsan CONFIG="--enable-mods-shared=reallyall --disable-http2" TEST_UBSAN=1