-
Notifications
You must be signed in to change notification settings - Fork 174
/
appveyor.yml
78 lines (66 loc) · 2.58 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: build-{build}
clone_depth: 1
skip_tags: true
image: Visual Studio 2019
environment:
matrix:
- platform: Win32
configuration: Debug
- platform: Win32
configuration: Release
- platform: x64
configuration: Debug
- platform: x64
configuration: Release
matrix:
fast_finish: false
init:
- cmake --version
- msbuild /version
- cmd: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f
- cmd: echo "Platform='%env:Platform%'"
- cmd: set INSTALL_PREFIX=C:\tmp\ci_build
install:
- cmd: |
set LIBZMQ_SOURCEDIR=C:\projects\libzmq
set LIBZMQ_BUILDDIR=%LIBZMQ_SOURCEDIR%\build
git clone --depth 1 --quiet https://github.com/zeromq/libzmq.git "%LIBZMQ_SOURCEDIR%"
md "%LIBZMQ_BUILDDIR%"
- cmd: |
set CZMQ_SOURCEDIR=C:\projects\czmq
set CZMQ_BUILDDIR="%CZMQ_SOURCEDIR%\build"
git clone --depth 1 --quiet https://github.com/zeromq/czmq.git "%CZMQ_SOURCEDIR%"
md "%CZMQ_BUILDDIR%"
before_build:
- cmd: |
cd "%LIBZMQ_BUILDDIR%"
cmake .. -DBUILD_STATIC=OFF -DBUILD_SHARED=ON -DZMQ_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%"
cmake --build . --config %Configuration% --target install
- cmd: |
cd "%CZMQ_BUILDDIR%"
cmake .. -DCZMQ_BUILD_STATIC=OFF -DCZMQ_BUILD_SHARED=ON -DCMAKE_PREFIX_PATH="C:\tmp\ci_build" -DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%"
cmake --build . --config %Configuration% --target install
- cmd: |
cd "%CZMQ_SOURCEDIR%"
cd bindings\jni
gradlew.bat publishToMavenLocal -PbuildPrefix="%INSTALL_PREFIX%" -x test --info
clone_folder: C:\projects\zyre
build_script:
- cmd: |
set ZYRE_BUILDDIR="%APPVEYOR_BUILD_FOLDER%\build"
md "%ZYRE_BUILDDIR%"
cd "%ZYRE_BUILDDIR%"
cmake .. -DZYRE_BUILD_STATIC=OFF -DZYRE_BUILD_SHARED=ON -DCMAKE_PREFIX_PATH="C:\tmp\ci_build" -DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%"
cmake --build . --config %Configuration% --target install
ctest -C %Configuration% -V
- cmd: |
cd "%APPVEYOR_BUILD_FOLDER%"
cd bindings\jni
gradlew.bat build jar -PbuildPrefix="%INSTALL_PREFIX%" -x test --info
after_build:
- cmd: cd "%ZYRE_BUILDDIR%\%Configuration%"
- cmd: copy "%INSTALL_PREFIX%\bin\*.dll" .
- cmd: 7z a -y -bd -mx=9 zyre.zip zyre_selftest.exe perf_local.exe perf_remote.exe zpinger.exe ztester_beacon.exe ztester_gossip.exe libzmq*.dll libczmq*.dll libzyre*.dll
- ps: Push-AppveyorArtifact "zyre.zip" -Filename "zyre-${env:Platform}-${env:Configuration}.zip"
test:
none