.appveyor.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Windows Build Configuration for AppVeyor
  2. # http://www.appveyor.com/docs/appveyor-yml
  3. # build version format
  4. version: "{build}"
  5. os: Visual Studio 2013
  6. platform:
  7. - x64
  8. configuration:
  9. - Debug
  10. - Release
  11. branches:
  12. only:
  13. - master
  14. # Travis advances the master-tot tag to current top of the tree after
  15. # each push into the master branch, because it relies on that tag to
  16. # upload build artifacts to the master-tot release. This will cause
  17. # double testing for each push on Appveyor: one for the push, one for
  18. # the tag advance. Disable testing tags.
  19. skip_tags: true
  20. clone_depth: 5
  21. matrix:
  22. fast_finish: true # Show final status immediately if a test fails.
  23. # scripts that run after cloning repository
  24. install:
  25. - git clone https://github.com/google/googletest.git External/googletest
  26. - C:/Python27/python.exe update_glslang_sources.py
  27. build:
  28. parallel: true # enable MSBuild parallel builds
  29. verbosity: minimal
  30. build_script:
  31. - mkdir build && cd build
  32. - cmake .. -DCMAKE_INSTALL_PREFIX=install
  33. - cmake --build . --config %CONFIGURATION% --target install
  34. test_script:
  35. - ctest -C %CONFIGURATION% --output-on-failure
  36. - cd ../Test && bash runtests
  37. - cd ../build
  38. after_test:
  39. # For debug build, the generated dll has a postfix "d" in its name.
  40. - ps: >-
  41. If ($env:configuration -Match "Debug") {
  42. $env:SUFFIX="d"
  43. } Else {
  44. $env:SUFFIX=""
  45. }
  46. - cd install
  47. # Zip all glslang artifacts for uploading and deploying
  48. - 7z a glslang-master-windows-"%PLATFORM%"-"%CONFIGURATION%".zip
  49. bin\glslangValidator.exe
  50. include\glslang\*
  51. include\SPIRV\*
  52. lib\glslang%SUFFIX%.lib
  53. lib\HLSL%SUFFIX%.lib
  54. lib\OGLCompiler%SUFFIX%.lib
  55. lib\OSDependent%SUFFIX%.lib
  56. lib\SPIRV%SUFFIX%.lib
  57. lib\SPVRemapper%SUFFIX%.lib
  58. lib\SPIRV-Tools%SUFFIX%.lib
  59. lib\SPIRV-Tools-opt%SUFFIX%.lib
  60. artifacts:
  61. - path: build\install\*.zip
  62. name: artifacts-zip
  63. deploy:
  64. - provider: GitHub
  65. auth_token:
  66. secure: YglcSYdl0TylEa59H4K6lylBEDr586NAt2EMgZquSo+iuPrwgZQuJLPCoihSm9y6
  67. release: master-tot
  68. description: "Continuous build of the latest master branch by Appveyor and Travis CI"
  69. artifact: artifacts-zip
  70. draft: false
  71. prerelease: false
  72. force_update: true
  73. on:
  74. branch: master
  75. APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013