appveyor.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. - git submodule update --init --recursive
  36. - if not exist "%CYG_ROOT%" mkdir "%CYG_ROOT%"
  37. - ps: echo "Installing Cygwin from $env:CYG_SETUP_URL to $env:CYG_ROOT/setup-x86.exe"
  38. - appveyor DownloadFile %CYG_SETUP_URL% -FileName %CYG_ROOT%/setup-x86.exe
  39. - ps: echo "Downloaded. Now ready to install."
  40. - cmd: '"%CYG_ROOT%/setup-x86.exe" --quiet-mode --no-shortcuts --only-site -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" --packages cmake,python'
  41. - cmd: '%CYG_BASH% -lc "cygcheck -dc cygwin"'
  42. before_build:
  43. # use MinGW64
  44. - set PATH=C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;%PATH%
  45. # Workaround for CMake not wanting sh.exe on PATH for MinGW
  46. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  47. build_script:
  48. - cd c:\projects\open62541
  49. - md build
  50. - cd build
  51. - echo "Testing %CC_NAME%"
  52. - cmake -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -G"%CC_NAME%" ..
  53. - '%MAKE%'
  54. - cd ..
  55. - rd /s /q build
  56. - md build
  57. - cd build
  58. - echo "Testing %CC_NAME% with amalgamation"
  59. - cmake -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_ENABLE_AMALGAMATION:BOOL=ON -DUA_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -G"%CC_NAME%" ..
  60. - '%MAKE%'
  61. - cd ..
  62. after_build:
  63. - 7z a open62541-%CC_SHORTNAME%.zip %APPVEYOR_BUILD_FOLDER%\build*
  64. - appveyor PushArtifact open62541-%CC_SHORTNAME%.zip