-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
80 lines (69 loc) · 2.64 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
79
80
# version string format -- This will be overwritten later anyway
version: "{build}"
os:
- Visual Studio 2017
configuration:
- Release
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: Visual Studio 14 2015
VISUAL_STUDIO_INTERNAL_VERSION: 140
VISUAL_STUDIO_VERSION: 14.0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: Visual Studio 15 2017
VISUAL_STUDIO_INTERNAL_VERSION: 141
VISUAL_STUDIO_VERSION: 14.1
matrix:
fast_finish: true
install:
- mkdir deps && cd deps
- git clone -b v1.11.0 --single-branch https://github.com/google/flatbuffers.git # Fixed to release 1.11.0
- cd flatbuffers && mkdir flatbuffer_build && cd flatbuffer_build
- cmake -G "%CMAKE_GENERATOR% Win64" -DCMAKE_BUILD_TYPE=%CONFIGURATION% .. # Flatbuffers doesn't install flatc other than in Release.
- cmake --build . --target install --config %CONFIGURATION%
- cd %APPVEYOR_BUILD_FOLDER%/deps
- git clone -b v4.3.2 --single-branch https://github.com/zeromq/libzmq.git # Fixed to release 4.3.2
- cd libzmq && mkdir libzmq_build && cd libzmq_build
- cmake -G "%CMAKE_GENERATOR% Win64" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DENABLE_CURVE=OFF -DZMQ_BUILD_TESTS=OFF ..
- cmake --build . --target install --config %CONFIGURATION%
- cd %APPVEYOR_BUILD_FOLDER%/deps
- git clone -b v4.6.0 --single-branch https://github.com/zeromq/cppzmq.git # Fixed to release 4.6.0
- cd cppzmq && mkdir cppzmq_build && cd cppzmq_build
- cmake -G "%CMAKE_GENERATOR% Win64" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCPPZMQ_BUILD_TESTS=OFF ..
- cmake --build . --target install --config %CONFIGURATION%
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- rmdir deps /s /q
- mkdir build && cd build
- ps: >-
If ($env:APPVEYOR_REPO_TAG -eq "false") {
cmake -G "$env:CMAKE_GENERATOR Win64" -DSIMPLE_BUILD_TESTS=ON -DSIMPLE_BUILD_EXAMPLES=ON ..
} Else {
cmake -G "$env:CMAKE_GENERATOR Win64" -DSIMPLE_BUILD_STATIC=OFF -DSIMPLE_ENABLE_CPACK=ON ..
}
build_script:
- cmake --build . --config %CONFIGURATION% -- /verbosity:minimal
test_script:
- ps: >-
If ($env:APPVEYOR_REPO_TAG -eq "false") {
ctest -R simple_tests -C $env:CONFIGURATION --output-on-failure
}
after_build:
- ps: >-
If ($env:APPVEYOR_REPO_TAG -eq "true") {
cpack
}
artifacts:
- path: 'build/*.exe'
name: simple_artifact
deploy:
description: 'S.I.M.P.L.E. Release'
provider: GitHub
auth_token:
secure: /Zfum05XMUCPaLKLsrsOTr/t4A8Kvz3lDN4ajPt6SZRlU+AX1/ee0CqpgR5AKCGg
artifact: simple_artifact
draft: false
prerelease: false
on:
APPVEYOR_REPO_TAG: true