./config: detect x32-only environment.
[openssl.git] / appveyor.yml
index dda4dba3b9ac7e41a178f73c1f0268a3a273fce1..c668b3941e8370e00ac5ae4ce19ad2f1a8a787a9 100644 (file)
@@ -15,28 +15,39 @@ before_build:
         If ($env:Platform -Match "x86") {
             $env:VCVARS_PLATFORM="x86"
             $env:TARGET="VC-WIN32"
-            $env:DO="do_ms"
         } Else {
             $env:VCVARS_PLATFORM="amd64"
             $env:TARGET="VC-WIN64A"
-            $env:DO="do_win64a"
         }
     - ps: >-
-        If ($env:Configuration -Like "*shared*") {
-            $env:MAK="ntdll.mak"
+        If ($env:Configuration -Match "shared") {
+            $env:SHARED=""
         } Else {
-            $env:MAK="nt.mak"
+            $env:SHARED="no-shared"
         }
     - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
     - call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
-    - perl Configure %TARGET% no-asm
-    - call ms\%DO%
+    - mkdir _build
+    - cd _build
+    - perl ..\Configure %TARGET% no-asm %SHARED%
+    - cd ..
 
 build_script:
-    - nmake /f ms\%MAK%
+    - cd _build
+    - nmake
+    - cd ..
 
 test_script:
-    - nmake /f ms\%MAK% test
+    - cd _build
+    - nmake test
+    - cd ..
+
+# Fake deploy script to test installation
+deploy_script:
+    - mkdir _install
+    - cd _build
+    - nmake install install_docs DESTDIR=..\_install
+    - cd ..
 
 notifications:
     - provider: Email