@@ -11,8 +11,11 @@ sudo: false
11
11
dist : trusty
12
12
13
13
env :
14
- - GLSLANG_BUILD_TYPE=Release
15
- - GLSLANG_BUILD_TYPE=Debug
14
+ global :
15
+ - secure : aGFrgzyKp+84hKrGkxVWg8cHV61uqrKEHT38gfSQK6+WS4GfLOyH83p7WnsEBb7AMhzU7LMNFdvOFr6+NaMpVnqRvc40CEG1Q+lNg9Pq9mhIZLowvDrfqTL9kQ+8Nbw5Q6/dg6CTvY7fvRfpfCEmKIUZBRkoKUuHeuM1uy3IupFcdNuL5bSYn3Beo+apSJginh9DI4BLDXFUgBzTRSLLyCX5g3cpaeGGOCr8quJlYx75W6HRck5g9SZuLtUoH9GFEV3l+ZEWB8noErW+J56L03bwNwFuuAh321evw++oQk5KFa8rlDvar3SJ3b1RHB8u/eq5DBYMyaK/fS8+Q7QbGr8diF/wDe68bKO7U9IhpNfExXmczCpExjHomW5TQv4rYdGhygPMfW97aIsPRYyNKcl4fkmb7NDrM8w0Jscdq2g5c2Kz0ItyZoBri/NXLwFQQjaVCs7Pf97TjuMA7mK0GJmDTRzi6SrDYlWMt5BQL3y0CCojyfLIRcTh0CQjQI29s97bLfQrYAxt9GNNFR+HTXRLLrkaAlJkPGEPwUywlSfEThnvHLesNxYqemolAYpQT4ithoL4GehGIHmaxsW295aKVhuRf8K9eBODNqrfblvM42UHhjntT+92ZnQ/Gkq80GqaMxnxi4PO5FyPIxt0r981b54YBkWi8YA4P7w5pNI=
16
+ matrix :
17
+ - GLSLANG_BUILD_TYPE=Release
18
+ - GLSLANG_BUILD_TYPE=Debug
16
19
17
20
compiler :
18
21
- clang
@@ -75,3 +78,46 @@ script:
75
78
ctest --output-on-failure &&
76
79
cd ../Test && ./runtests;
77
80
fi
81
+
82
+ after_success :
83
+ # For debug build, the generated dll has a postfix "d" in its name.
84
+ - if [[ "${GLSLANG_BUILD_TYPE}" == "Debug" ]]; then
85
+ export SUFFIX="d";
86
+ else
87
+ export SUFFIX="";
88
+ fi
89
+ # Create tarball for deployment
90
+ - if [[ ${CC} == clang* && "${BUILD_NDK}" != "ON" ]]; then
91
+ cd ../build/install;
92
+ export TARBALL=glslang-master-${TRAVIS_OS_NAME}-${GLSLANG_BUILD_TYPE}.zip;
93
+ zip ${TARBALL}
94
+ bin/glslangValidator
95
+ include/glslang/*
96
+ include/SPIRV/*
97
+ lib/libglslang${SUFFIX}.a
98
+ lib/libHLSL${SUFFIX}.a
99
+ lib/libOGLCompiler${SUFFIX}.a
100
+ lib/libOSDependent${SUFFIX}.a
101
+ lib/libSPIRV${SUFFIX}.a
102
+ lib/libSPVRemapper${SUFFIX}.a
103
+ lib/libSPIRV-Tools${SUFFIX}.a
104
+ lib/libSPIRV-Tools-opt${SUFFIX}.a;
105
+ fi
106
+
107
+ before_deploy :
108
+ # Tag the current top of the tree as "master-tot".
109
+ # Travis CI replies on the tag name to properly push to GitHub Releases.
110
+ - git config --global user.name "Travis CI"
111
+ -
git config --global user.email "[email protected] "
112
+ - git tag -f master-tot
113
+ - git push -q -f https://${glslangtoken}@github.com/KhronosGroup/glslang --tags
114
+
115
+ deploy :
116
+ provider : releases
117
+ api_key : ${glslangtoken}
118
+ on :
119
+ branch : master
120
+ condition : ${CC} == clang* && ${BUILD_NDK} != ON
121
+ file : ${TARBALL}
122
+ skip_cleanup : true
123
+ overwrite : true
0 commit comments