Skip to content

Commit a565cd7

Browse files
authored
Move docs into $TRAVIS_BUILD_DIR rather than $HOME. (#410)
1 parent 1e1a22a commit a565cd7

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.ci/build_docs.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ rm -rf ${AIKIDO_DIR}
1414
git clone "https://github.com/${TRAVIS_REPO_SLUG}.git" ${AIKIDO_DIR}
1515

1616
# Organize into "gh-pages" directory
17-
mkdir -p ${HOME}/gh-pages
17+
mkdir -p ${TRAVIS_BUILD_DIR}/gh-pages
1818

1919
# Initialize list of API versions
20-
cat <<EOF > ${HOME}/gh-pages/README.md
20+
cat <<EOF > ${TRAVIS_BUILD_DIR}/gh-pages/README.md
2121
## API Documentation
2222
2323
EOF
@@ -27,12 +27,12 @@ cd build_docs
2727

2828
while read version; do
2929
# Add entry to list of API versions
30-
echo "* [${version}](https://personalrobotics.github.io/aikido/${version}/)" >> ${HOME}/gh-pages/README.md
30+
echo "* [${version}](https://personalrobotics.github.io/aikido/${version}/)" >> ${TRAVIS_BUILD_DIR}/gh-pages/README.md
3131

3232
# Build documentation
3333
git -C ${AIKIDO_DIR} checkout ${version}
3434
rm -rf *
3535
cmake -DDOWNLOAD_TAGFILES=ON ${AIKIDO_DIR}
3636
make docs
37-
mv doxygen ${HOME}/gh-pages/${version}
37+
mv doxygen ${TRAVIS_BUILD_DIR}/gh-pages/${version}
3838
done < ${TRAVIS_BUILD_DIR}/.ci/docs_versions.txt

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ after_failure:
112112
else
113113
'.ci/after_failure.sh';
114114
fi
115-
116-
before_deploy:
117-
- cd "${HOME}"
118115

119116
deploy:
120117
github-token: $GITHUB_TOKEN

0 commit comments

Comments
 (0)