-
Notifications
You must be signed in to change notification settings - Fork 48
/
appveyor.yml
73 lines (62 loc) · 2.14 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
########################################################################
## AppVeyor config for Pothos
##
## * not all components will be configured
## * build only on a 64-bit environment
## * only builds for release configuration
## * install Poco from pre-built zip
##
## FAIL: The build takes too long, most components are disabled.
## TODO: but build takes too long... 40 min limit
## * install SoapySDR from source
## * run the self tests after install
########################################################################
version: '{build}'
platform: x64
configuration:
- RelWithDebInfo
environment:
global:
GENERATOR: Visual Studio 14 Win64
POTHOS_PREFIX: C:/Program Files/Pothos
SOAPY_PREFIX: C:/Program Files/SoapySDR
SOAPY_BRANCH: master
# Operating system (build VM template)
os: Windows Server 2012 R2
# branches to build
branches:
# whitelist
only:
- master
- maint
before_build:
# install SoapySDR from source
#- git clone https://github.com/pothosware/SoapySDR.git
#- cd SoapySDR
#- git checkout %SOAPY_BRANCH%
#- mkdir build && cd build
#- cmake ../ -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX="%SOAPY_PREFIX%" -DCMAKE_BUILD_TYPE=%CONFIGURATION%
#- cmake --build . --config %CONFIGURATION%
#- cmake --build . --config %CONFIGURATION% --target install
#- cd ../..
# download pre-built poco
- ps: Start-FileDownload 'http://www.joshknows.com/download/Poco_1.6.0_x64_rel.zip'
- 7z x Poco_1.6.0_x64_rel.zip -o"C:/Program Files"
# configure and build
build_script:
- set PATH=C:/Program Files/Poco/bin;%PATH%
- echo %PATH%
- git submodule update --init --recursive
- mkdir build && cd build
- cmake ../ -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX="%POTHOS_PREFIX%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DENABLE_TOOLKITS=OFF -DENABLE_DOCS=OFF -DBUILD_TESTING=OFF
- cmake --build . --config %CONFIGURATION%
- cmake --build . --config %CONFIGURATION% --target install
# setup environment paths
before_test:
- set PATH=%POTHOS_PREFIX%/bin;%PATH%
- set PATH=%SOAPY_PREFIX%/bin;%PATH%
- echo %PATH%
# basic test for command line utility
#test_script:
# - PothosUtil --system-info
# - PothosUtil --self-tests