Skip to content

Instantly share code, notes, and snippets.

@fabianp
Last active December 17, 2015 22:39
Show Gist options
  • Save fabianp/5683648 to your computer and use it in GitHub Desktop.
Save fabianp/5683648 to your computer and use it in GitHub Desktop.
NISL documentation buildbot
#/bin/bash
source $HOME/envs/cron/bin/activate
cd $HOME/cron/nisl
# clean all previous code
rm -rf *
# clean import
git fetch origin
git reset --hard origin/master
echo 'compile NISL code'
make in
export PYTHONPATH=$HOME/cron/scikit-learn
export NISL_DATA=$HOME/nisl_data
echo 'compile NISL documentation'
cd doc
make html
echo 'go to webpage repository'
cd $HOME/cron/nisl.github.com
git fetch origin
git reset --hard origin/master
if [ -f $HOME/cron/nisl/doc/_build/html/index.html ];
then
cp -r $HOME/cron/nisl/doc/_build/html/* .
msg=$(fortune)
git add .
git commit -a -m "Documentation Buildbot
$msg"
git push origin master
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment