In travis, build from a "source release" rather than from the build tree
authorRichard Levitte <levitte@openssl.org>
Mon, 7 Dec 2015 14:47:43 +0000 (15:47 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 7 Dec 2015 15:25:13 +0000 (16:25 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 475fc3d8729190fd12b4ff23d6ec488439fb78f9)

.travis.yml

index 397ac1d958abdf0e728410c65ac6aa314454f05b..288a3f126b95d9e2adee4cbf2019009aa0b6c066 100644 (file)
@@ -32,6 +32,9 @@ matrix:
           env: CONFIG_OPTS="-d --strict-warnings"
 
 before_script:
           env: CONFIG_OPTS="-d --strict-warnings"
 
 before_script:
+    - make -f Makefile.org TARFILE=_srcdist.tar NAME=_srcdist dist
+    - tar -xvzf _srcdist.tar.gz
+    - cd _srcdist
     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
           export CROSS_COMPILE=${CC%%gcc}; unset CC;
           ./Configure mingw $CONFIG_OPTS;
     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
           export CROSS_COMPILE=${CC%%gcc}; unset CC;
           ./Configure mingw $CONFIG_OPTS;
@@ -41,10 +44,13 @@ before_script:
       else
           ./config $CONFIG_OPTS;
       fi
       else
           ./config $CONFIG_OPTS;
       fi
+    - cd ..
 
 script:
 
 script:
+    - cd _srcdist
     - make
     - if [ -z "$CROSS_COMPILE" ]; then make test; fi
     - make
     - if [ -z "$CROSS_COMPILE" ]; then make test; fi
+    - cd ..
 
 notifications:
     recipient:
 
 notifications:
     recipient: