In travis, build from a "source release" rather than from the build tree
[openssl.git] / .travis.yml
index 3125363cdf009d29e6b859bf7b9f3b8397862e97..6a2d745a154ed4a0e653f26c0424b59c7c5620ab 100644 (file)
@@ -26,8 +26,15 @@ matrix:
           compiler: i686-w64-mingw32-gcc
         - os: osx
           compiler: x86_64-w64-mingw32-gcc
+        - compiler: i686-w64-mingw32-gcc
+          env: CONFIG_OPTS="-d --strict-warnings"
+        - compiler: x86_64-w64-mingw32-gcc
+          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;
@@ -35,16 +42,19 @@ before_script:
           export CROSS_COMPILE=${CC%%gcc}; unset CC;
           ./Configure mingw64 $CONFIG_OPTS;
       else
+          if [ "$CC" == gcc ]; then
+              export CONFIG_OPTS="$CONFIG_OPTS -Wno-error=shadow";
+          fi;
           ./config $CONFIG_OPTS;
       fi
+    - cd ..
 
 script:
+    - cd _srcdist
     - make
     - if [ -z "$CROSS_COMPILE" ]; then make test; fi
+    - cd ..
 
 notifications:
-    recipient:
-        - openssl-commits@openssl.org
     email:
-        on_success: change
-        on_failure: always
+        - openssl-commits@openssl.org