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