appveyor.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. # Update Cygwin
  12. - ps: $exePath = "C:\cygwin\setup-x86.exe"; (New-Object Net.WebClient).DownloadFile('https://cygwin.com/setup-x86.exe', $exePath)
  13. build_script:
  14. - cd c:\projects\open62541
  15. # cygwin cmake stopped working on 05.07.2016 -- commented out until a fix appears
  16. #- md build
  17. #- cd build
  18. #- echo "Testing cygwin"
  19. #- C:\cygwin\setup-x86.exe -q -P cmake,gcc-core,make,python
  20. #- 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"'
  21. #- cd ..
  22. #- rd /s /q build
  23. - md build
  24. - cd build
  25. - echo "Testing MinGW32"
  26. - cmake -DUA_BUILD_EXAMPLESERVER:BOOL=ON -DUA_BUILD_EXAMPLECLIENT:BOOL=ON -DUA_BUILD_EXAMPLES:BOOL=ON -G"MinGW Makefiles" ..
  27. - mingw32-make
  28. - cd ..
  29. - rd /s /q build
  30. - md build
  31. - cd build
  32. - cmake -DUA_BUILD_EXAMPLESERVER:BOOL=ON -DUA_BUILD_EXAMPLECLIENT:BOOL=ON -DUA_BUILD_EXAMPLES:BOOL=ON -G"Visual Studio 12 2013" ..
  33. - msbuild open62541.sln
  34. - echo "Testing amalgamation"
  35. - cd ..
  36. - rd /s /q build
  37. - md build
  38. - cd build
  39. - 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" ..
  40. - msbuild open62541.sln
  41. - copy C:\projects\open62541\build\open62541.c C:\projects\open62541\build\Debug\open62541.c
  42. - copy C:\projects\open62541\build\open62541.h C:\projects\open62541\build\Debug\open62541.h
  43. - cd ..
  44. - echo "Win 64 build"
  45. - md build64
  46. - cd build64
  47. - 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" ..
  48. - msbuild open62541.sln
  49. - copy C:\projects\open62541\build64\open62541.c C:\projects\open62541\build64\Debug\open62541.c
  50. - copy C:\projects\open62541\build64\open62541.h C:\projects\open62541\build64\Debug\open62541.h
  51. - cd ..
  52. after_build:
  53. - 7z a open62541-win32.zip %APPVEYOR_BUILD_FOLDER%\build\Debug\*
  54. - 7z a open62541-win64.zip %APPVEYOR_BUILD_FOLDER%\build64\Debug\*
  55. - appveyor PushArtifact open62541-win32.zip
  56. - appveyor PushArtifact open62541-win64.zip