.appveyor.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. bin\spirv-remap.exe
  51. include\glslang\*
  52. include\SPIRV\*
  53. lib\glslang%SUFFIX%.lib
  54. lib\HLSL%SUFFIX%.lib
  55. lib\OGLCompiler%SUFFIX%.lib
  56. lib\OSDependent%SUFFIX%.lib
  57. lib\SPIRV%SUFFIX%.lib
  58. lib\SPVRemapper%SUFFIX%.lib
  59. lib\SPIRV-Tools%SUFFIX%.lib
  60. lib\SPIRV-Tools-opt%SUFFIX%.lib
  61. artifacts:
  62. - path: build\install\*.zip
  63. name: artifacts-zip
  64. deploy:
  65. - provider: GitHub
  66. auth_token:
  67. secure: YglcSYdl0TylEa59H4K6lylBEDr586NAt2EMgZquSo+iuPrwgZQuJLPCoihSm9y6
  68. release: master-tot
  69. description: "Continuous build of the latest master branch by Appveyor and Travis CI"
  70. artifact: artifacts-zip
  71. draft: false
  72. prerelease: false
  73. force_update: true
  74. on:
  75. branch: master
  76. APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013