appveyor.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. version: '{build}'
  2. clone_folder: c:\projects\open62541
  3. clone_depth: 20
  4. environment:
  5. global:
  6. CYG_ARCH: x86
  7. CYG_ROOT: C:/cygwin
  8. CYG_SETUP_URL: http://cygwin.com/setup-x86.exe
  9. CYG_MIRROR: http://cygwin.mirror.constant.com
  10. CYG_CACHE: C:\cygwin\var\cache\setup
  11. CYG_BASH: C:/cygwin/bin/bash
  12. matrix:
  13. - CC_NAME: MinGW Makefiles
  14. CC_SHORTNAME: mingw
  15. MAKE: mingw32-make
  16. FORCE_CXX: OFF
  17. # - CC_NAME: Visual Studio 9 2008
  18. # CC_SHORTNAME: vs2008
  19. # MAKE: msbuild open62541.sln /m
  20. # FORCE_CXX: ON
  21. - CC_NAME: Visual Studio 12 2013
  22. CC_SHORTNAME: vs2013
  23. MAKE: msbuild open62541.sln /m
  24. FORCE_CXX: OFF
  25. - CC_NAME: Visual Studio 12 2013 Win64
  26. CC_SHORTNAME: vs2013-x64
  27. MAKE: msbuild open62541.sln /m
  28. FORCE_CXX: OFF
  29. cache:
  30. - '%CYG_CACHE%'
  31. init:
  32. - git config --global core.autocrlf input # Attempt to ensure we don't try to convert line endings to Win32 CRLF as this will cause build to fail
  33. # Install needed build dependencies
  34. install:
  35. - if not exist "%CYG_ROOT%" mkdir "%CYG_ROOT%"
  36. - ps: echo "Installing Cygwin from $env:CYG_SETUP_URL to $env:CYG_ROOT/setup-x86.exe"
  37. - appveyor DownloadFile %CYG_SETUP_URL% -FileName %CYG_ROOT%/setup-x86.exe
  38. - ps: echo "Downloaded. Now ready to install."
  39. - cmd: '"%CYG_ROOT%/setup-x86.exe" --quiet-mode --no-shortcuts --only-site -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" --packages cmake,python'
  40. - cmd: '%CYG_BASH% -lc "cygcheck -dc cygwin"'
  41. before_build:
  42. # Workaround for CMake not wanting sh.exe on PATH for MinGW
  43. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  44. - set PATH=C:\MinGW\bin;%PATH%
  45. build_script:
  46. - cd c:\projects\open62541
  47. - md build
  48. - cd build
  49. - echo "Testing %CC_NAME%"
  50. - cmake -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -G"%CC_NAME%" ..
  51. - '%MAKE%'
  52. - cd ..
  53. - rd /s /q build
  54. - md build
  55. - cd build
  56. - echo "Testing %CC_NAME% with amalgamation"
  57. - cmake -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_ENABLE_AMALGAMATION:BOOL=ON -DUA_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -G"%CC_NAME%" ..
  58. - '%MAKE%'
  59. - cd ..
  60. after_build:
  61. - 7z a open62541-%CC_SHORTNAME%.zip %APPVEYOR_BUILD_FOLDER%\build*
  62. - appveyor PushArtifact open62541-%CC_SHORTNAME%.zip