.travis.yml: where it matters, have build and source nesting levels differ
authorRichard Levitte <levitte@openssl.org>
Wed, 26 Feb 2020 13:57:39 +0000 (14:57 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 4 Mar 2020 11:55:57 +0000 (12:55 +0100)
Where we build out of source, the source directory was _srcdist and
the build directory was _build.  That gives the same nesting level for
both, which doesn't quite exercise all aspects of relative back
references from build to source tree.

Changing the build tree to be in _build/tree will challenge back
references a bit more, and ensure a bit more that we got it right.

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/11186)

.travis.yml

index a015eb40538f3cd06e0e3fbe8a2ab62ebacad6c9..f77f8c7586f91d7290159b7a5c218658f294b96c 100644 (file)
@@ -170,10 +170,10 @@ before_script:
     - if [ -n "$DESTDIR" ]; then
           sh .travis-create-release.sh $TRAVIS_OS_NAME;
           tar -xzf _srcdist.tar.gz;
-          mkdir _build;
-          cd _build;
-          srcdir=../_srcdist;
-          top=..;
+          mkdir -p _build/tree;
+          cd _build/tree;
+          srcdir=../../_srcdist;
+          top=../..;
       else
           srcdir=.;
           top=.;
@@ -210,7 +210,7 @@ script:
       fi
     - top=${PWD}
     - if [ -n "$DESTDIR" ]; then
-          cd _build;
+          cd _build/tree;
       fi
     - if ! $make update; then
           echo -e '\052\052 FAILED -- MAKE UPDATE';