appveyor.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ########################################################################
  2. ## AppVeyor config for Pothos
  3. ##
  4. ## * not all components will be configured
  5. ## * build only on a 64-bit environment
  6. ## * only builds for release configuration
  7. ## * install Poco from pre-built zip
  8. ##
  9. ## FAIL: The build takes too long, most components are disabled.
  10. ## TODO: but build takes too long... 40 min limit
  11. ## * install SoapySDR from source
  12. ## * run the self tests after install
  13. ########################################################################
  14. version: '{build}'
  15. platform: x64
  16. configuration:
  17. - RelWithDebInfo
  18. environment:
  19. global:
  20. GENERATOR: Visual Studio 14 Win64
  21. POTHOS_PREFIX: C:/Program Files/Pothos
  22. SOAPY_PREFIX: C:/Program Files/SoapySDR
  23. SOAPY_BRANCH: master
  24. # Operating system (build VM template)
  25. os: Windows Server 2012 R2
  26. # branches to build
  27. branches:
  28. # whitelist
  29. only:
  30. - master
  31. - maint
  32. before_build:
  33. # install SoapySDR from source
  34. #- git clone https://github.com/pothosware/SoapySDR.git
  35. #- cd SoapySDR
  36. #- git checkout %SOAPY_BRANCH%
  37. #- mkdir build && cd build
  38. #- cmake ../ -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX="%SOAPY_PREFIX%" -DCMAKE_BUILD_TYPE=%CONFIGURATION%
  39. #- cmake --build . --config %CONFIGURATION%
  40. #- cmake --build . --config %CONFIGURATION% --target install
  41. #- cd ../..
  42. # download pre-built poco
  43. - ps: Start-FileDownload 'http://www.joshknows.com/download/Poco_1.6.0_x64_rel.zip'
  44. - 7z x Poco_1.6.0_x64_rel.zip -o"C:/Program Files"
  45. # configure and build
  46. build_script:
  47. - set PATH=C:/Program Files/Poco/bin;%PATH%
  48. - echo %PATH%
  49. - git submodule update --init --recursive
  50. - mkdir build && cd build
  51. - cmake ../ -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX="%POTHOS_PREFIX%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DENABLE_TOOLKITS=OFF -DENABLE_DOCS=OFF -DBUILD_TESTING=OFF
  52. - cmake --build . --config %CONFIGURATION%
  53. - cmake --build . --config %CONFIGURATION% --target install
  54. # setup environment paths
  55. before_test:
  56. - set PATH=%POTHOS_PREFIX%/bin;%PATH%
  57. - set PATH=%SOAPY_PREFIX%/bin;%PATH%
  58. - echo %PATH%
  59. # basic test for command line utility
  60. #test_script:
  61. # - PothosUtil --system-info
  62. # - PothosUtil --self-tests