This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
78 lines (67 loc) · 3.25 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
version: build-{build}
clone_depth: 1
skip_tags: true
os: Visual Studio 2015
environment:
CMAKE_GENERATOR: "Visual Studio 14 2015"
MSVCVERSION: "v140"
MSVCYEAR: "vs2015"
ZMQ_VERSION: "4.2.1"
matrix:
- platform: Win32
configuration: Release
- platform: x64
configuration: Release
matrix:
fast_finish: false
init:
- cmake --version
- msbuild /version
install:
- cmd: if "%Platform%"=="x64" set "CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64"
- cmd: echo "Generator='%CMAKE_GENERATOR%'"
- cmd: echo "Platform='%Platform%'"
- cmd: set LIBSODIUMDIR=C:\projects\libsodium
- cmd: git clone --branch stable --depth 1 --quiet "https://github.com/jedisct1/libsodium.git" %LIBSODIUMDIR%
- cmd: msbuild /v:minimal /maxcpucount:%NUMBER_OF_PROCESSORS% /p:Configuration=%Configuration%DLL %LIBSODIUMDIR%\builds\msvc\%MSVCYEAR%\libsodium\libsodium.vcxproj
- cmd: set SODIUM_LIBRARY_DIR="%LIBSODIUMDIR%\bin\%Platform%\%Configuration%\%MSVCVERSION%\dynamic"
- cmd: set SODIUM_INCLUDE_DIR="%LIBSODIUMDIR%\src\libsodium\include"
- cmd: move "%SODIUM_LIBRARY_DIR%\libsodium.lib" "%SODIUM_LIBRARY_DIR%\sodium.lib"
before_build:
- cmd: cd c:\projects
- cmd: set LIBZMQ_BUILDDIR=C:\projects\libzmq
- cmd: md "%LIBZMQ_BUILDDIR%"
- cmd: git clone --quiet "https://github.com/zeromq/libzmq.git" %LIBZMQ_BUILDDIR%-src
- cd "%LIBZMQ_BUILDDIR%"
- cmd: cmake -D CMAKE_INCLUDE_PATH="%SODIUM_INCLUDE_DIR%" -D CMAKE_LIBRARY_PATH="%SODIUM_LIBRARY_DIR%" -D CMAKE_C_FLAGS_RELEASE="/MT" -D CMAKE_CXX_FLAGS_RELEASE="/MT" -D CMAKE_C_FLAGS_DEBUG="/MTd" -G "%CMAKE_GENERATOR%" %LIBZMQ_BUILDDIR%-src
build:
parallel: true
project: C:\projects\libzmq\ZeroMQ.sln
verbosity: minimal
after_build:
- cd "%LIBZMQ_BUILDDIR%\bin\%Configuration%"
- ps: mv libzmq-v*.dll libzmq.dll
- cd "%LIBZMQ_BUILDDIR%\lib\%Configuration%"
- ps: mv libzmq-$env:MSVCVERSION-mt-4*.lib libzmq.lib
- cmd: set LIBJZMQDIR=C:\projects\jzmq
- cmd: git clone --depth 1 --quiet https://github.com/lukepalmer/jzmq.git %LIBJZMQDIR%-src
- cmd: md "%LIBJZMQDIR%"
- cmd: cd "%LIBJZMQDIR%"
- cmd: cmake -G "%CMAKE_GENERATOR%" -DLIBZMQ_INCLUDE_DIR="%LIBZMQ_BUILDDIR%-src/include" -DLIBZMQ_LINK_DIR="%LIBZMQ_BUILDDIR%/lib/%Configuration%" "%LIBJZMQDIR%-src/jzmq-jni"
- cmd: msbuild /v:minimal /maxcpucount:%NUMBER_OF_PROCESSORS% /p:Configuration=%Configuration% %LIBJZMQDIR%/JZMQ.sln
- cmd: 7z a -y -bd -mx=9 libzmq.zip "%LIBZMQ_BUILDDIR%\bin\%Configuration%\libzmq.dll" "%SODIUM_LIBRARY_DIR%\libsodium.dll" "%LIBJZMQDIR%\lib\%Configuration%\libjzmq.dll"
- ps: Push-AppveyorArtifact "libzmq.zip" -Filename "zeromq-native-${env:ZMQ_VERSION}.zip"
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(new-object System.Net.WebClient).DownloadFile('https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip', 'C:\maven-bin.zip')
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- cmd: SET PATH=C:\maven\apache-maven-3.3.9\bin;%JAVA_HOME%\bin;%PATH%
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- ps: .\maven-enable-snapshots.ps1
- cmd: mvn install -DskipTests -Dgpg.skip=true
- cmd: mvn test
cache:
- C:\maven\
- C:\Users\appveyor\.m2