Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
72d0d42a
Commit
72d0d42a
authored
Jul 09, 2014
by
Philipp A. Hartmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
travis-doxygen.sh: avoid leaking the GitHub token in build log
parent
63de910d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
travis-doxygen.sh
build/travis-doxygen.sh
+7
-7
No files found.
build/travis-doxygen.sh
View file @
72d0d42a
...
@@ -11,9 +11,7 @@ DOXYGEN_URL="http://ftp.stack.nl/pub/users/dimitri/${DOXYGEN_TAR}"
...
@@ -11,9 +11,7 @@ DOXYGEN_URL="http://ftp.stack.nl/pub/users/dimitri/${DOXYGEN_TAR}"
DOXYGEN_BIN
=
"/usr/local/bin/doxygen"
DOXYGEN_BIN
=
"/usr/local/bin/doxygen"
GHPAGES_REPO
=
"miloyip/rapidjson"
GHPAGES_REPO
=
"miloyip/rapidjson"
GHPAGES_BASE
=
"https://github.com/
${
GHPAGES_REPO
}
"
GHPAGES_URL
=
"https://github.com/
${
GHPAGES_REPO
}
"
# NOTE: not expanded here to hide GH_TOKEN
GHPAGES_PUSH
=
'https://${GH_TOKEN}@github.com/${GHPAGES_REPO}'
skip
()
{
skip
()
{
echo
"
$@
"
1>&2
echo
"
$@
"
1>&2
...
@@ -63,7 +61,7 @@ gh_pages_prepare()
...
@@ -63,7 +61,7 @@ gh_pages_prepare()
cd
"
${
TRAVIS_BUILD_DIR
}
/doc"
;
cd
"
${
TRAVIS_BUILD_DIR
}
/doc"
;
[
!
-d
"html"
]
||
\
[
!
-d
"html"
]
||
\
abort
"Doxygen target directory already exists."
abort
"Doxygen target directory already exists."
git clone
--single-branch
-b
gh-pages
${
GHPAGES_
BASE
}
html
git clone
--single-branch
-b
gh-pages
${
GHPAGES_
URL
}
html
cd
html
cd
html
# setup git config (with defaults)
# setup git config (with defaults)
git config user.name
"
${
GIT_NAME
-travis
}
"
git config user.name
"
${
GIT_NAME
-travis
}
"
...
@@ -87,9 +85,11 @@ gh_pages_push() {
...
@@ -87,9 +85,11 @@ gh_pages_push() {
skip
"GitHub access token not available, not updating GitHub pages."
skip
"GitHub access token not available, not updating GitHub pages."
cd
"
${
TRAVIS_BUILD_DIR
}
/doc/html"
;
cd
"
${
TRAVIS_BUILD_DIR
}
/doc/html"
;
# push to GitHub without printing GH_TOKEN even in "set -x" mode
# setup credentials (hide in "set -x" mode)
(
echo
"git push
${
GHPAGES_PUSH
}
gh-pages"
;
set
+x
;
\
git config core.askpass /bin/true
eval
"git push
${
GHPAGES_PUSH
}
gh-pages"
)
(
set
+x
;
git config credential.
${
GHPAGES_URL
}
.username
"
${
GH_TOKEN
}
"
)
# push to GitHub
git push origin gh-pages
}
}
doxygen_install
doxygen_install
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment