Skip to content

Commit 9da3d7b

Browse files
committed
Merge branch 'develop' of ssh://github.com/openml/python into develop
2 parents 002c420 + 925edbd commit 9da3d7b

7 files changed

Lines changed: 526 additions & 69 deletions

File tree

ci_scripts/push_doc.sh

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,39 @@
44
# The behavior of the script is controlled by environment variable defined
55
# in the circle.yml in the top level folder of the project.
66

7-
MSG="Pushing the docs for revision for branch: $CIRCLE_BRANCH, commit $CIRCLE_SHA1"
7+
if [ ! -z "$1" ]
8+
then DOC_FOLDER=$1
9+
fi
10+
11+
MSG="Pushing the docs for revision for branch: $CIRCLE_BRANCH, commit $CIRCLE_SHA1, folder: $DOC_FOLDER"
812

913
cd $HOME
10-
# Copy the build docs to a temporary folder
11-
rm -rf tmp
12-
mkdir tmp
13-
cp -R $HOME/$DOC_REPO/doc/build/html/* ./tmp/
1414

1515
# Clone the docs repo if it isnt already there
1616
if [ ! -d $DOC_REPO ];
1717
then git clone "git@github.com:$USERNAME/"$DOC_REPO".git";
1818
fi
1919

20+
# Copy the build docs to a temporary folder
21+
rm -rf tmp
22+
mkdir tmp
23+
cp -R $HOME/$DOC_REPO/doc/build/html/* ./tmp/
24+
2025
cd $DOC_REPO
2126
git branch gh-pages
2227
git checkout -f gh-pages
2328
git reset --hard origin/gh-pages
2429
git clean -dfx
25-
26-
for name in $(ls -A $HOME/$DOC_REPO); do
27-
case $name in
28-
.nojekyll) # So that github does not build this as a Jekyll website.
29-
;;
30-
circle.yml) # Config so that build gh-pages branch.
31-
;;
32-
*)
33-
git rm -rf $name
34-
;;
35-
esac
36-
done
30+
git rm -rf $HOME/$DOC_REPO/$DOC_FOLDER && rm -rf $HOME/$DOC_REPO/$DOC_FOLDER
3731

3832
# Copy the new build docs
39-
mkdir $DOC_URL
40-
cp -R $HOME/tmp/* ./$DOC_URL/
33+
mkdir $DOC_FOLDER
34+
cp -R $HOME/tmp/* ./$DOC_FOLDER/
4135

4236
git config --global user.email $EMAIL
4337
git config --global user.name $USERNAME
44-
git add -f ./$DOC_URL/
38+
git add -f ./$DOC_FOLDER/
4539
git commit -m "$MSG"
4640
git push -f origin gh-pages
4741

48-
echo $MSG
42+
echo $MSG

circle.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ dependencies:
2222
- sudo apt-get install libatlas-dev libatlas3gf-base
2323
- sudo apt-get install build-essential python-dev python-setuptools
2424
# install numpy first as it is a compile time dependency for other packages
25+
- pip install --upgrade pip
2526
- pip install --upgrade numpy
27+
- pip install --upgrade scipy
28+
- pip install git+https://github.com/mfeurer/liac-arff.git
2629
# install documentation building dependencies
2730
- pip install --upgrade matplotlib setuptools nose coverage sphinx pillow sphinx-gallery sphinx_bootstrap_theme cython numpydoc scikit-learn nbformat nbconvert
2831
# Installing required packages for `make -C doc check command` to work.
@@ -42,10 +45,14 @@ test:
4245
override:
4346
- cat ~/log.txt && if grep -q "Traceback (most recent call last):" ~/log.txt; then false; else true; fi
4447
deployment:
45-
push:
48+
master:
49+
branch: master
50+
commands:
51+
- bash ci_scripts/push_doc.sh 'stable'
52+
development:
4653
branch: develop
4754
commands:
48-
- bash ci_scripts/push_doc.sh
55+
- bash ci_scripts/push_doc.sh 'dev'
4956
general:
5057
# Open the doc to the API
5158
artifacts:
@@ -54,4 +61,5 @@ general:
5461
# Restric the build to the branch master only
5562
branches:
5663
only:
64+
- master
5765
- develop

doc/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)