File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
913cd $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
1616if [ ! -d $DOC_REPO ];
1717 then git clone " git@github.com:$USERNAME /" $DOC_REPO " .git" ;
1818fi
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+
2025cd $DOC_REPO
2126git branch gh-pages
2227git checkout -f gh-pages
2328git reset --hard origin/gh-pages
2429git 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
4236git config --global user.email $EMAIL
4337git config --global user.name $USERNAME
44- git add -f ./$DOC_URL /
38+ git add -f ./$DOC_FOLDER /
4539git commit -m " $MSG "
4640git push -f origin gh-pages
4741
48- echo $MSG
42+ echo $MSG
Original file line number Diff line number Diff 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
4447deployment :
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'
4956general :
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
Original file line number Diff line number Diff line change 1+
You can’t perform that action at this time.
0 commit comments