appveyor: get nsis from libwebsockets.org
[platform/upstream/libwebsockets.git] / appveyor.yml
index 47a73f6..a6b45fc 100644 (file)
@@ -14,15 +14,32 @@ environment:
     - LWS_METHOD: nossl
       CMAKE_ARGS: -DLWS_WITH_SSL=OFF
 install:
-  - appveyor DownloadFile http://slproweb.com/download/Win32OpenSSL-1_0_1L.exe
-  - Win32OpenSSL-1_0_1L.exe /silent /verysilent /sp- /suppressmsgboxes
+  - appveyor DownloadFile https://libwebsockets.org:444/Win32OpenSSL-1_0_2h.exe
+  - Win32OpenSSL-1_0_2h.exe /silent /verysilent /sp- /suppressmsgboxes
+  - appveyor DownloadFile https://libwebsockets.org:444/nsis-3.0rc1-setup.exe
+  - cmd /c start /wait nsis-3.0rc1-setup.exe /S /D=C:\nsis
+  - SET PATH=C:\Program Files\NSIS\;C:\Program Files (x86)\NSIS\;%PATH%
 build:
 
 build_script:
   - md build
   - cd build
-  - cmake %CMAKE_ARGS% ..
-  - cmake --build .
+  - cmake -DCMAKE_BUILD_TYPE=Release %CMAKE_ARGS% ..
+  - cmake --build . --config Release
+
+# TODO: Keeps breaking Windows build, should be rewritten using CPack properly instead...
+#after_build:
+#  - cd ..
+#  - cd win32port
+#  - makensis -DVERSION=%APPVEYOR_BUILD_VERSION% libwebsockets.nsi
+
+
+artifacts:
+  - name: Installer
+    path: 'win32port/libwebsockets-*-install.exe'
+
 cache:
   - C:\OpenSSL-Win32
 
+matrix:
+  fast_finish: true