fix deploy

This commit is contained in:
JAremko 2017-08-18 21:11:39 +03:00
parent 06301b2212
commit 3d4a3a460a
2 changed files with 8 additions and 1 deletions

View File

@ -23,6 +23,10 @@ echo_headline () {
echo
}
cd ~/.emacs.d
echo "Pwd $(pwd)"
rm -rf ~/.emacs.d/.cache/ ~/.emacs.d/export/
if [ $TRAVIS_SECURE_ENV_VARS = true ]; then
hub_version="2.2.9"
@ -40,8 +44,9 @@ if [ $TRAVIS_SECURE_ENV_VARS = true ]; then
echo "Publishing ${PUBLISH}"
echo_headline "INSTALLING DEPENDENCIES:"
emacs -batch -l init.el
echo_headline "EXPORTING DOCUMENTATION:"
emacs -batch -l init.el > /dev/null 2>&1
emacs -batch -l init.el -l core/core-documentation.el \
-f spacemacs/publish-doc
if [ $? -ne 0 ]; then

View File

@ -89,3 +89,5 @@ elif [ ! -z "$FORMAT" ]; then
fi
echo "Done."
fi
rm -rf /tmp/*