appveyor.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. version: '{build}'
  2. os: Visual Studio 2015 RC
  3. clone_folder: c:\projects\open62541
  4. environment:
  5. global:
  6. CYG_ROOT: C:/cygwin
  7. before_build:
  8. # Workaround for CMake not wanting sh.exe on PATH for MinGW
  9. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  10. - set PATH=C:\MinGW\bin;%PATH%
  11. build_script:
  12. - cd c:\projects\open62541
  13. - md build
  14. - cd build
  15. - echo "Testing cygwin"
  16. - C:\cygwin\setup-x86.exe -q -P cmake
  17. - cmd: '%CYG_ROOT%/bin/bash --login -lc "cd /cygdrive/c/projects/open62541/build; cmake -DUA_BUILD_EXAMPLESERVER:BOOL=ON -DUA_BUILD_EXAMPLECLIENT:BOOL=ON -DUA_BUILD_EXAMPLES:BOOL=ON -G\"Unix Makefiles\" ..; make"'
  18. - cd ..
  19. - rd /s /q build
  20. - md build
  21. - cd build
  22. - echo "Testing MinGW32"
  23. - cmake -DUA_BUILD_EXAMPLESERVER:BOOL=ON -DUA_BUILD_EXAMPLECLIENT:BOOL=ON -DUA_BUILD_EXAMPLES:BOOL=ON -G"MinGW Makefiles" ..
  24. - mingw32-make
  25. - cd ..
  26. - rd /s /q build
  27. - md build
  28. - cd build
  29. - cmake -DUA_BUILD_EXAMPLESERVER:BOOL=ON -DUA_BUILD_EXAMPLECLIENT:BOOL=ON -DUA_BUILD_EXAMPLES:BOOL=ON -G"Visual Studio 12 2013" ..
  30. - msbuild open62541.sln
  31. - echo "Testing amalgamation"
  32. - cd ..
  33. - rd /s /q build
  34. - md build
  35. - cd build
  36. - cmake -DUA_BUILD_EXAMPLESERVER:BOOL=ON -DUA_BUILD_EXAMPLECLIENT:BOOL=ON -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_ENABLE_AMALGAMATION:BOOL=ON -G"Visual Studio 12 2013" ..
  37. - msbuild open62541.sln
  38. - copy C:\projects\open62541\build\open62541.c C:\projects\open62541\build\Debug\open62541.c
  39. - copy C:\projects\open62541\build\open62541.h C:\projects\open62541\build\Debug\open62541.h
  40. - cd ..
  41. - echo "Win 64 build"
  42. - md build64
  43. - cd build64
  44. - cmake -DUA_BUILD_EXAMPLESERVER:BOOL=ON -DUA_BUILD_EXAMPLECLIENT:BOOL=ON -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_ENABLE_AMALGAMATION:BOOL=ON -G"Visual Studio 12 2013 Win64" ..
  45. - msbuild open62541.sln
  46. - copy C:\projects\open62541\build64\open62541.c C:\projects\open62541\build64\Debug\open62541.c
  47. - copy C:\projects\open62541\build64\open62541.h C:\projects\open62541\build64\Debug\open62541.h
  48. - cd ..
  49. after_build:
  50. - 7z a open62541-win32.zip %APPVEYOR_BUILD_FOLDER%\build\Debug\*
  51. - 7z a open62541-win64.zip %APPVEYOR_BUILD_FOLDER%\build64\Debug\*
  52. - appveyor PushArtifact open62541-win32.zip
  53. - appveyor PushArtifact open62541-win64.zip