appveyor.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. version: '{build}'
  2. os: Visual Studio 2015 RC
  3. clone_folder: c:\projects\open62541
  4. before_build:
  5. - set STATICBUILD=true && python -m pip install lxml
  6. build_script:
  7. - cd c:\projects\open62541
  8. - md build
  9. - cd build
  10. - cmake -DBUILD_EXAMPLESERVER:BOOL=ON -DBUILD_EXAMPLECLIENT:BOOL=ON -DBUILD_EXAMPLES:BOOL=ON -G"Visual Studio 12 2013" ..
  11. - msbuild open62541.sln
  12. - echo "Testing amalgamation"
  13. - cd ..
  14. - rd /s /q build
  15. - md build
  16. - cd build
  17. - cmake -DBUILD_EXAMPLESERVER:BOOL=ON -DBUILD_EXAMPLECLIENT:BOOL=ON -DBUILD_EXAMPLES:BOOL=ON -DENABLE_AMALGAMATION:BOOL=ON -G"Visual Studio 12 2013" ..
  18. - msbuild open62541.sln
  19. - cp C:\projects\open62541\build\open62541.c C:\projects\open62541\build\Debug\open62541.c
  20. - cp C:\projects\open62541\build\open62541.h C:\projects\open62541\build\Debug\open62541.h
  21. - cd ..
  22. - echo "Win 64 build"
  23. - md build64
  24. - cd build64
  25. - cmake -DBUILD_EXAMPLESERVER:BOOL=ON -DBUILD_EXAMPLECLIENT:BOOL=ON -DBUILD_EXAMPLES:BOOL=ON -DENABLE_AMALGAMATION:BOOL=ON -G"Visual Studio 12 2013 Win64" ..
  26. - msbuild open62541.sln
  27. - cp C:\projects\open62541\build64\open62541.c C:\projects\open62541\build64\Debug\open62541.c
  28. - cp C:\projects\open62541\build64\open62541.h C:\projects\open62541\build64\Debug\open62541.h
  29. - cd ..
  30. after_build:
  31. - 7z a open62541-win32.zip %APPVEYOR_BUILD_FOLDER%\build\Debug\*
  32. - 7z a open62541-win64.zip %APPVEYOR_BUILD_FOLDER%\build64\Debug\*
  33. - appveyor PushArtifact open62541-win32.zip
  34. - appveyor PushArtifact open62541-win64.zip