From: Joe Orton Date: Fri, 8 Nov 2019 14:29:17 +0000 (+0000) Subject: Add shared-mpms build, add build against APR trunk (httpd trunk only). X-Git-Tag: 2.5.0-alpha2-ci-test-only~1807 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53ec69f3ca116f843da301b4e12a56100d623807;p=thirdparty%2Fapache%2Fhttpd.git Add shared-mpms build, add build against APR trunk (httpd trunk only). Fix handling and ensure safe caching of APR trunk build. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869564 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/.travis.yml b/.travis.yml index 297d89eac05..500527eb998 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,6 +32,9 @@ matrix: - name: Linux Ubuntu, Worker MPM, all-modules env: CONFIG="--enable-mods-shared=reallyall --with-mpm=worker" # ------------------------------------------------------------------------- + - name: Linux Ubuntu, Shared MPMs, all-modules + env: CONFIG="--enable-mods-shared=reallyall --enable-mpms-shared=all" + # ------------------------------------------------------------------------- - name: Linux Ubuntu Bionic, all-modules os: linux dist: bionic @@ -63,6 +66,11 @@ matrix: - libnghttp2-dev - libjansson-dev # ------------------------------------------------------------------------- + - if: branch = trunk + - name: Linux Ubuntu, APR trunk + env: APR_VERSION=trunk APR_CONFIG="--with-crypto" + CONFIG="--enable-mods-shared=reallyall" + # ------------------------------------------------------------------------- - name: Linux Ubuntu, APR 1.7.0, APR-util 1.6.1 env: APR_VERSION=1.7.0 APU_VERSION=1.6.1 CONFIG="--enable-mods-shared=reallyall" diff --git a/test/travis_before_linux.sh b/test/travis_before_linux.sh index 6f076a2da44..999837f3aec 100755 --- a/test/travis_before_linux.sh +++ b/test/travis_before_linux.sh @@ -3,21 +3,32 @@ if ! test -v SKIP_TESTING; then svn export -q https://svn.apache.org/repos/asf/httpd/test/framework/trunk test/perl-framework fi if test -v APR_VERSION; then + # For APR trunk the cached version at ~/root/apr-trunk will be + # stale if the current trunk revision is different from that of + # the cached build. Here, cache and check the rev number of the + # build accordingly. + trunk_url=https://svn.apache.org/repos/asf/apr/apr/trunk + if test $APR_VERSION = trunk; then + trunk_rev=`svn info --show-item last-changed-revision ${trunk_url}` + # Blow away the cached trunk install if the revision does not + # match. + test -f $HOME/root/apr-trunk/.revision-is-${trunk_rev} || rm -rf $HOME/root/apr-trunk + fi if ! test -d $HOME/root/apr-${APR_VERSION}; then case $APR_VERSION in - trunk) url=https://svn.apache.org/repos/asf/apr/apr/trunk ;; - *) url=https://svn.apache.org/repos/asf/apr/apr/tags/${APR_VERSION} ;; + trunk) svn export -q -r ${trunk_rev} ${trunk_url} $HOME/build/apr-trunk ;; + *) svn export -q https://svn.apache.org/repos/asf/apr/apr/tags/${APR_VERSION} \ + $HOME/build/apr-${APR_VERSION} ;; esac - svn export -q ${url} $HOME/build/apr-${APR_VERSION} pushd $HOME/build/apr-${APR_VERSION} - if [ $APR_VERSION = 1.4.1 ]; then - # 1.4.1 doesn't build with current libtool - svn cat https://svn.apache.org/repos/asf/apr/apr/tags/1.5.1/buildconf > buildconf - fi ./buildconf ./configure ${APR_CONFIG} --prefix=$HOME/root/apr-${APR_VERSION} make -j2 make install + if test -v trunk_rev; then + # Record the revision built in the cache. + touch $HOME/root/apr-${APR_VERSION}/.revision-is-${trunk_rev} + fi popd APU_CONFIG="$APU_CONFIG --with-apr=$HOME/root/apr-${APR_VERSION}" fi