appveyor.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. MAKE: mingw32-make -j 2>&1
  14. FORCE_CXX: OFF
  15. OUT_DIR_LIB: bin
  16. OUT_DIR_EXAMPLES: bin\examples
  17. - CC_NAME: Visual Studio 9 2008
  18. CC_SHORTNAME: vs2008
  19. MAKE: msbuild /p:ContinueOnError=false /p:StopOnFirstFailure=true open62541.sln
  20. FORCE_CXX: ON
  21. OUT_DIR_LIB: bin\Debug
  22. OUT_DIR_EXAMPLES: bin\examples\Debug
  23. - CC_NAME: Visual Studio 12 2013
  24. CC_SHORTNAME: vs2013
  25. MAKE: msbuild /p:ContinueOnError=false /p:StopOnFirstFailure=true open62541.sln
  26. FORCE_CXX: OFF
  27. OUT_DIR_LIB: bin\Debug
  28. OUT_DIR_EXAMPLES: bin\examples\Debug
  29. - CC_NAME: Visual Studio 14 2015
  30. CC_SHORTNAME: vs2015
  31. MAKE: msbuild /p:ContinueOnError=false /p:StopOnFirstFailure=true open62541.sln
  32. FORCE_CXX: OFF
  33. OUT_DIR_LIB: bin\Debug
  34. OUT_DIR_EXAMPLES: bin\examples\Debug
  35. cache:
  36. - C:\ProgramData\chocolatey\bin -> tools/appveyor/install.ps1
  37. - C:\ProgramData\chocolatey\lib -> tools/appveyor/install.ps1
  38. - C:\tools\vcpkg\installed -> tools/appveyor/install.ps1
  39. #- 'c:\miktex'
  40. init:
  41. - 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
  42. install:
  43. - ps: '& "./tools/appveyor/install.ps1"'
  44. before_build:
  45. # Add installed tools to PATH
  46. - set PATH=C:\Python27;C:\msys64\mingw64\bin;C:\Program Files (x86)\Dr. Memory\bin;C:\Program Files\CMake\bin;%PATH%
  47. # Workaround for CMake not wanting sh.exe on PATH for MinGW
  48. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  49. # Miktex
  50. - set "PATH=%PATH%;c:\miktex\texmfs\install\miktex\bin;%APPDATA%\Python\Scripts"
  51. # autoinstall latex packages (0=no, 1=autoinstall, 2=ask)
  52. # this adds this to the registry!
  53. - initexmf --set-config-value [MPM]AutoInstall=1
  54. - initexmf --update-fndb
  55. build_script:
  56. - ps: '& "./tools/appveyor/build.ps1"'
  57. after_build:
  58. - appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\open62541-%CC_SHORTNAME%-static.zip
  59. - appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\open62541-%CC_SHORTNAME%-dynamic.zip