Last active
December 17, 2015 22:39
-
-
Save fabianp/5683648 to your computer and use it in GitHub Desktop.
NISL documentation buildbot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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