forked from pothosware/SoapySDR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
56 lines (45 loc) · 1.29 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
########################################################################
## AppVeyor config for SoapySDR
##
## * build only on a 64-bit environment
## * the matrix builds Release and Debug
## * minimal testing for command line util
########################################################################
version: '{build}'
platform: x64
configuration:
- Debug
- Release
environment:
global:
INSTALL_PREFIX: C:/Program Files/SoapySDR
# Operating system (build VM template)
os: Windows Server 2012 R2
# branches to build
branches:
# whitelist
only:
- master
- maint
# dependencies for python bindings
# disabled because of link issues on VM
#install:
# - choco install swig
# configure and build
build_script:
- mkdir build
- cd build
- cmake ../ -G "Visual Studio 12 Win64" -DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%" -DCMAKE_BUILD_TYPE=%CONFIGURATION%
- cmake --build . --config %CONFIGURATION%
- cmake --build . --config %CONFIGURATION% --target install
# setup environment paths
before_test:
- set PATH=%INSTALL_PREFIX%/bin;%PATH%
- set PYTHONPATH=%INSTALL_PREFIX%/Lib/site-packages;%PYTHONPATH%
# basic test for command line utility
test_script:
- SoapySDRUtil --info
- SoapySDRUtil --check=null
- SoapySDRUtil --make="driver=null"
# run the unit tests
- ctest