Skip to content

Commit

Permalink
Move docs into $TRAVIS_BUILD_DIR rather than $HOME. (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhou committed May 11, 2018
1 parent 1e1a22a commit a565cd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .ci/build_docs.sh
Expand Up @@ -14,10 +14,10 @@ rm -rf ${AIKIDO_DIR}
git clone "https://github.com/${TRAVIS_REPO_SLUG}.git" ${AIKIDO_DIR}

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

# Initialize list of API versions
cat <<EOF > ${HOME}/gh-pages/README.md
cat <<EOF > ${TRAVIS_BUILD_DIR}/gh-pages/README.md
## API Documentation
EOF
Expand All @@ -27,12 +27,12 @@ cd build_docs

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

# Build documentation
git -C ${AIKIDO_DIR} checkout ${version}
rm -rf *
cmake -DDOWNLOAD_TAGFILES=ON ${AIKIDO_DIR}
make docs
mv doxygen ${HOME}/gh-pages/${version}
mv doxygen ${TRAVIS_BUILD_DIR}/gh-pages/${version}
done < ${TRAVIS_BUILD_DIR}/.ci/docs_versions.txt
3 changes: 0 additions & 3 deletions .travis.yml
Expand Up @@ -112,9 +112,6 @@ after_failure:
else
'.ci/after_failure.sh';
fi

before_deploy:
- cd "${HOME}"

deploy:
github-token: $GITHUB_TOKEN
Expand Down

0 comments on commit a565cd7

Please sign in to comment.