4
4
REPO_PATH=https://github.com/audioscience/avdecc-lib.git
5
5
BUILD_PATH=build-doc
6
6
HTML_PATH=doc/public_lib
7
- COMMIT_USER=" Documentation Builder"
8
-
7
+
8
+
9
+ # #### Configure git.
10
+ # Set the push default to simple i.e. push only the current branch.
11
+ git config --global push.default simple
12
+ # Pretend to be an user called Travis CI.
13
+ git config --global user.name " Travis CI"
14
+ git config --global user.email
" [email protected] "
9
15
10
16
# Pull the HTML repo
11
17
mkdir -p ${BUILD_PATH}
12
18
git clone -b gh-pages " ${REPO_PATH} " --single-branch ${BUILD_PATH}
19
+ echo " After clone"
20
+ pwd
21
+ ls
13
22
14
23
# Create HTML directory
15
24
cd ${BUILD_PATH}
16
25
mkdir -p ${HTML_PATH}
26
+ echo " After mkdir build path"
17
27
cd -
28
+ ls ${BUILD_PATH}
18
29
30
+ # #### Generate the Doxygen code documentation and log the output. #####
31
+ echo ' Generating Doxygen code documentation...'
19
32
doxygen Doxyfile-public_lib
20
33
21
34
# Create and commit the documentation repo.
22
35
cd ${BUILD_PATH}
36
+ echo " After cd build path"
37
+ pwd
38
+ ls
23
39
# ###############################################################################
24
40
# #### Upload the documentation to the gh-pages branch of the repository. #####
25
41
# Only upload if Doxygen successfully created the documentation.
@@ -41,11 +57,13 @@ if [ -d "${HTML_PATH}/html" ] && [ -f "${HTML_PATH}/html/index.html" ]; then
41
57
# Force push to the remote gh-pages branch.
42
58
# The ouput is redirected to /dev/null to hide any sensitive credential data
43
59
# that might otherwise be exposed.
44
- git push --force " https://${GH_REPO_TOKEN} @github.com/audioscience/avdecc-lib.git" > /dev/null 2>&1
60
+
61
+ # Don't have authentication figured out at this point.
62
+ echo ' push to github here - if it worked'
63
+ # git push --force https://andrew-elder:${GH_AVDECC_TOKEN}@github.com/audioscience/avdecc-lib.git
45
64
else
46
- echo ' ' >&2
47
- echo ' Warning: No documentation (html) files have been found!' >&2
48
- echo ' Warning: Not going to push the documentation to GitHub!' >&2
65
+ echo ' Warning: No documentation (html) files have been found!'
66
+ echo ' Warning: Not going to push the documentation to GitHub!'
49
67
exit 1
50
68
fi
51
69
cd -
0 commit comments