use license macro in the spec file
[platform/upstream/libwebsockets.git] / appveyor.yml
1 environment:
2   matrix:
3     - LWS_METHOD: default
4
5     - LWS_METHOD: noserver
6       CMAKE_ARGS: -DLWS_WITHOUT_SERVER=ON
7
8     - LWS_METHOD: noclient
9       CMAKE_ARGS: -DLWS_WITHOUT_CLIENT=ON
10
11     - LWS_METHOD: noext
12       CMAKE_ARGS: -DLWS_WITHOUT_EXTENSIONS=ON
13
14     - LWS_METHOD: nossl
15       CMAKE_ARGS: -DLWS_WITH_SSL=OFF
16 install:
17   - appveyor DownloadFile https://libwebsockets.org:444/Win32OpenSSL-1_0_2h.exe
18   - Win32OpenSSL-1_0_2h.exe /silent /verysilent /sp- /suppressmsgboxes
19   - appveyor DownloadFile https://libwebsockets.org:444/nsis-3.0rc1-setup.exe
20   - cmd /c start /wait nsis-3.0rc1-setup.exe /S /D=C:\nsis
21   - SET PATH=C:\Program Files\NSIS\;C:\Program Files (x86)\NSIS\;%PATH%
22 build:
23
24 build_script:
25   - md build
26   - cd build
27   - cmake -DCMAKE_BUILD_TYPE=Release %CMAKE_ARGS% ..
28   - cmake --build . --config Release
29
30 # TODO: Keeps breaking Windows build, should be rewritten using CPack properly instead...
31 #after_build:
32 #  - cd ..
33 #  - cd win32port
34 #  - makensis -DVERSION=%APPVEYOR_BUILD_VERSION% libwebsockets.nsi
35
36
37 artifacts:
38   - name: Installer
39     path: 'win32port/libwebsockets-*-install.exe'
40
41 cache:
42   - C:\OpenSSL-Win32
43
44 matrix:
45   fast_finish: true