projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5b90c0
)
[travis] Build docs only on tagged revisions
author
Khaled Hosny
<khaledhosny@eglug.org>
Sat, 26 Dec 2015 02:35:08 +0000
(06:35 +0400)
committer
Khaled Hosny
<khaledhosny@eglug.org>
Sat, 26 Dec 2015 02:35:08 +0000
(06:35 +0400)
Lets see if it works…
.ci/deploy-docs.sh
patch
|
blob
|
history
diff --git
a/.ci/deploy-docs.sh
b/.ci/deploy-docs.sh
index
bbd64df
..
3323061
100755
(executable)
--- a/
.ci/deploy-docs.sh
+++ b/
.ci/deploy-docs.sh
@@
-1,6
+1,8
@@
+TAG="$(git describe --exact-match --match "[0-9]*" HEAD 2>/dev/null)"
+
set -o errexit -o nounset
-if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" -a "$TRAVIS_SECURE_ENV_VARS" == "true" -a "$T
RAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master"
]
+if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" -a "$TRAVIS_SECURE_ENV_VARS" == "true" -a "$T
AG" != ""
]
then
DOCSDIR=build-docs
REVISION=$(git rev-parse --short HEAD)