forked from mavlink/MAVSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
71 lines (59 loc) · 2.02 KB
/
appveyor.yml
File metadata and controls
71 lines (59 loc) · 2.02 KB
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
# Specify version format
version: "{build}"
# Operating system (build VM template)
os: Visual Studio 2015
# build platform, i.e. Win32 (instead of x86), x64, Any CPU. This setting is optional.
platform:
- x64
# specify custom environment variables
environment:
MSVC_DEFAULT_OPTIONS: ON
# only build PR but not branch as well
skip_branch_with_pr: true
# build configuration, i.e. Debug, Release, etc.
configuration:
- Debug
- Release
# scripts that are called at very beginning, before repo cloning
init:
- cmake --version
- msbuild /version
# clone directory
clone_folder: C:\dronecore
# scripts to run before build
before_build:
- cd C:\dronecore
- git submodule update --init --recursive --depth 20
- cd C:\
- appveyor DownloadFile https://curl.haxx.se/download/curl-7.55.1.zip
- 7z x -y curl-7.55.1.zip
build: on
build_script:
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
- cd curl-7.55.1\winbuild
- if "%configuration%"=="Debug" (
nmake /f Makefile.vc mode=static VC=14 MACHINE=x64 DEBUG=yes
) else (
nmake /f Makefile.vc mode=static VC=14 MACHINE=x64 DEBUG=no
)
- cd C:\dronecore
- md build
- cd build
- if "%configuration%"=="Debug" (
cmake -DWIN_CURL_INCLUDE_DIR:STRING="C:\curl-7.55.1\include" -DWIN_CURL_LIB:STRING="C:\curl-7.55.1\builds\libcurl-vc14-x64-debug-static-ipv6-sspi-winssl\lib\libcurl_a_debug.lib" -G "Visual Studio 14 2015 Win64" ..
) else (
cmake -DWIN_CURL_INCLUDE_DIR:STRING="C:\curl-7.55.1\include" -DWIN_CURL_LIB:STRING="C:\curl-7.55.1\builds\libcurl-vc14-x64-release-static-ipv6-sspi-winssl\lib\libcurl_a.lib" -G "Visual Studio 14 2015 Win64" -DBUILD_SHARED_LIBS=OFF ..
)
- if "%configuration%"=="Debug" (
cmake --build . --target install --config Debug
) else (
cmake --build . --target install --config Release
)
test: on
test_script:
- cd C:\dronecore
- if "%configuration%"=="Debug" (
build\Debug\unit_tests_runner.exe
) else (
build\Release\unit_tests_runner.exe
)