appveyor.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. version: '{build}'
  2. clone_folder: c:\projects\open62541
  3. clone_depth: 20
  4. # Avoid building branch if it is part of a PR and built anyways
  5. skip_branch_with_pr: true
  6. environment:
  7. global:
  8. APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma -mx=9
  9. matrix:
  10. - CC_NAME: MinGW Makefiles
  11. CC_SHORTNAME: mingw
  12. # We need to redirect stderr to stdout otherwise powershell will fail if there is an output during amalgamation.
  13. # Only use one thread, otherwise appveyor runs out of memory
  14. MAKE: mingw32-make -j1 2>&1
  15. FORCE_CXX: OFF
  16. OUT_DIR_LIB: bin
  17. OUT_DIR_EXAMPLES: bin\examples
  18. - CC_NAME: Visual Studio 9 2008
  19. CC_SHORTNAME: vs2008
  20. MAKE: msbuild /p:ContinueOnError=false /p:StopOnFirstFailure=true open62541.sln
  21. FORCE_CXX: ON
  22. OUT_DIR_LIB: bin\Debug
  23. OUT_DIR_EXAMPLES: bin\examples\Debug
  24. - CC_NAME: Visual Studio 12 2013
  25. CC_SHORTNAME: vs2013
  26. MAKE: msbuild /p:ContinueOnError=false /p:StopOnFirstFailure=true open62541.sln
  27. FORCE_CXX: OFF
  28. OUT_DIR_LIB: bin\Debug
  29. OUT_DIR_EXAMPLES: bin\examples\Debug
  30. - CC_NAME: Visual Studio 14 2015
  31. CC_SHORTNAME: vs2015
  32. MAKE: msbuild /p:ContinueOnError=false /p:StopOnFirstFailure=true open62541.sln
  33. FORCE_CXX: OFF
  34. OUT_DIR_LIB: bin\Debug
  35. OUT_DIR_EXAMPLES: bin\examples\Debug
  36. cache:
  37. - C:\ProgramData\chocolatey\bin -> tools/appveyor/install.ps1
  38. - C:\ProgramData\chocolatey\lib -> tools/appveyor/install.ps1
  39. - C:\tools\vcpkg\installed -> tools/appveyor/install.ps1
  40. #- 'c:\miktex'
  41. init:
  42. - 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
  43. install:
  44. - set PATH=C:\Users\appveyor\AppData\Roaming\Python\Scripts;%PATH%
  45. - ps: '& "./tools/appveyor/install.ps1"'
  46. before_build:
  47. # Add installed tools to PATH
  48. - set PATH=C:\Python27;C:\msys64\mingw64\bin;C:\Program Files (x86)\Dr. Memory\bin;C:\Program Files\CMake\bin;%PATH%
  49. # Workaround for CMake not wanting sh.exe on PATH for MinGW
  50. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  51. ## Miktex
  52. #- set "PATH=%PATH%;c:\miktex\texmfs\install\miktex\bin;%APPDATA%\Python\Scripts"
  53. ## autoinstall latex packages (0=no, 1=autoinstall, 2=ask)
  54. ## this adds this to the registry!
  55. #- initexmf --set-config-value [MPM]AutoInstall=1
  56. #- initexmf --update-fndb
  57. build_script:
  58. - ps: '& "./tools/appveyor/build.ps1"'
  59. after_build:
  60. - appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\open62541-%CC_SHORTNAME%-static.zip
  61. - appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\open62541-%CC_SHORTNAME%-dynamic.zip