appveyor.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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,python-lxml
  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. - set STATICBUILD=true && python -m pip install lxml
  21. - md build
  22. - cd build
  23. - echo "Testing MinGW32"
  24. - cmake -DUA_BUILD_EXAMPLESERVER:BOOL=ON -DUA_BUILD_EXAMPLECLIENT:BOOL=ON -DUA_BUILD_EXAMPLES:BOOL=ON -G"MinGW Makefiles" ..
  25. - mingw32-make
  26. - cd ..
  27. - rd /s /q build
  28. - md build
  29. - cd build
  30. - cmake -DUA_BUILD_EXAMPLESERVER:BOOL=ON -DUA_BUILD_EXAMPLECLIENT:BOOL=ON -DUA_BUILD_EXAMPLES:BOOL=ON -G"Visual Studio 12 2013" ..
  31. - msbuild open62541.sln
  32. - echo "Testing amalgamation"
  33. - cd ..
  34. - rd /s /q build
  35. - md build
  36. - cd build
  37. - 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" ..
  38. - msbuild open62541.sln
  39. - copy C:\projects\open62541\build\open62541.c C:\projects\open62541\build\Debug\open62541.c
  40. - copy C:\projects\open62541\build\open62541.h C:\projects\open62541\build\Debug\open62541.h
  41. - cd ..
  42. - echo "Win 64 build"
  43. - md build64
  44. - cd build64
  45. - 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" ..
  46. - msbuild open62541.sln
  47. - copy C:\projects\open62541\build64\open62541.c C:\projects\open62541\build64\Debug\open62541.c
  48. - copy C:\projects\open62541\build64\open62541.h C:\projects\open62541\build64\Debug\open62541.h
  49. - cd ..
  50. after_build:
  51. - 7z a open62541-win32.zip %APPVEYOR_BUILD_FOLDER%\build\Debug\*
  52. - 7z a open62541-win64.zip %APPVEYOR_BUILD_FOLDER%\build64\Debug\*
  53. - appveyor PushArtifact open62541-win32.zip
  54. - appveyor PushArtifact open62541-win64.zip