appveyor.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. # Do not use multicore switch (/m), it causes appveyor to randomly fail
  20. MAKE: msbuild open62541.sln
  21. FORCE_CXX: ON
  22. - CC_NAME: Visual Studio 12 2013
  23. CC_SHORTNAME: vs2013
  24. # Do not use multicore switch (/m), it causes appveyor to randomly fail
  25. MAKE: msbuild open62541.sln
  26. FORCE_CXX: OFF
  27. - CC_NAME: Visual Studio 12 2013 Win64
  28. CC_SHORTNAME: vs2013-x64
  29. # Do not use multicore switch (/m), it causes appveyor to randomly fail
  30. MAKE: msbuild open62541.sln
  31. FORCE_CXX: OFF
  32. cache:
  33. - '%CYG_CACHE%'
  34. init:
  35. - 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
  36. # Install needed build dependencies
  37. install:
  38. - git submodule update --init --recursive
  39. - if not exist "%CYG_ROOT%" mkdir "%CYG_ROOT%"
  40. - ps: echo "Installing Cygwin from $env:CYG_SETUP_URL to $env:CYG_ROOT/setup-x86.exe"
  41. - appveyor DownloadFile %CYG_SETUP_URL% -FileName %CYG_ROOT%/setup-x86.exe
  42. - ps: echo "Downloaded. Now ready to install."
  43. - cmd: '"%CYG_ROOT%/setup-x86.exe" --quiet-mode --no-shortcuts --only-site -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" --packages cmake,python'
  44. - cmd: '%CYG_BASH% -lc "cygcheck -dc cygwin"'
  45. before_build:
  46. # use MinGW64
  47. - set PATH=C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;%PATH%
  48. # Workaround for CMake not wanting sh.exe on PATH for MinGW
  49. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  50. build_script:
  51. - cd c:\projects\open62541
  52. - md build
  53. - cd build
  54. - echo "Testing %CC_NAME%"
  55. - cmake -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -G"%CC_NAME%" ..
  56. - '%MAKE%'
  57. - cd ..
  58. - rd /s /q build
  59. - md build
  60. - cd build
  61. - echo "Testing %CC_NAME% with amalgamation"
  62. - cmake -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_ENABLE_AMALGAMATION:BOOL=ON -DUA_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -G"%CC_NAME%" ..
  63. - '%MAKE%'
  64. - cd ..
  65. after_build:
  66. - 7z a open62541-%CC_SHORTNAME%.zip %APPVEYOR_BUILD_FOLDER%\build*
  67. - appveyor PushArtifact open62541-%CC_SHORTNAME%.zip