forked from scikit-learn/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ba5c24
commit c365ab9
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# This script is meant to be called in the "deploy" step defined in | ||
# circle.yml. See https://circleci.com/docs/ for more details. | ||
# The behavior of the script is controlled by environment variable defined | ||
# in the circle.yml in the top level folder of the project. | ||
|
||
|
||
if [ -z $CIRCLE_PROJECT_USERNAME ]; | ||
then USERNAME="sklearn-ci"; | ||
else USERNAME=$CIRCLE_PROJECT_USERNAME; | ||
fi | ||
|
||
DOC_REPO="scikit-learn.github.io" | ||
|
||
MSG="Pushing the docs for revision for branch: $CIRCLE_BRANCH, commit $CIRCLE_SHA1" | ||
|
||
cd $HOME | ||
if [ ! -d $DOC_REPO ]; | ||
then git clone "[email protected]:scikit-learn/"$DOC_REPO".git"; | ||
fi | ||
cd $DOC_REPO | ||
git checkout master | ||
git reset --hard origin/master | ||
git rm -rf dev/ && rm -rf dev/ | ||
cp -R $HOME/scikit-learn/doc/_build/html/stable dev | ||
git config --global user.email "[email protected]" | ||
git config --global user.name $USERNAME | ||
git config --global push.default matching | ||
git add -f dev/ | ||
git commit -m "$MSG" dev | ||
git push | ||
|
||
echo $MSG |