-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from automl/development
Prepare release 0.2
- Loading branch information
Showing
63 changed files
with
2,069 additions
and
591 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,42 @@ | ||
#!/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 "$1" ] | ||
then DOC_FOLDER=$1 | ||
fi | ||
|
||
MSG="Pushing the docs for revision for branch: $CIRCLE_BRANCH, commit $CIRCLE_SHA1, folder: $DOC_FOLDER" | ||
|
||
cd $HOME | ||
|
||
# Clone the docs repo if it isnt already there | ||
if [ ! -d $DOC_REPO ]; | ||
then git clone "[email protected]:$USERNAME/"$DOC_REPO".git"; | ||
fi | ||
|
||
# Copy the build docs to a temporary folder | ||
rm -rf tmp | ||
mkdir tmp | ||
cp -R $HOME/$DOC_REPO/doc/build/html/* ./tmp/ | ||
|
||
cd $DOC_REPO | ||
git branch gh-pages | ||
git checkout -f gh-pages | ||
git reset --hard origin/gh-pages | ||
git clean -dfx | ||
git rm -rf $HOME/$DOC_REPO/$DOC_FOLDER && rm -rf $HOME/$DOC_REPO/$DOC_FOLDER | ||
|
||
# Copy the new build docs | ||
mkdir $DOC_FOLDER | ||
cp -R $HOME/tmp/* ./$DOC_FOLDER/ | ||
|
||
git config --global user.email $EMAIL | ||
git config --global user.name $USERNAME | ||
git add -f ./$DOC_FOLDER/ | ||
git commit -m "$MSG" | ||
git push -f origin gh-pages | ||
|
||
echo $MSG |
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,64 @@ | ||
machine: | ||
environment: | ||
# The github organization or username of the repository which hosts the | ||
# project and documentation. | ||
USERNAME: "automl" | ||
|
||
# The repository where the documentation will be hosted | ||
DOC_REPO: "SMAC3" | ||
|
||
# The base URL for the Github page where the documentation will be hosted | ||
DOC_URL: "" | ||
|
||
# The email is to be used for commits in the Github Page | ||
EMAIL: "[email protected]" | ||
|
||
dependencies: | ||
|
||
# Various dependencies | ||
pre: | ||
# from scikit-learn contrib | ||
- sudo -E apt-get -yq remove texlive-binaries --purge | ||
- sudo apt-get update | ||
- sudo apt-get install libatlas-dev libatlas3gf-base | ||
- sudo apt-get install build-essential python-dev python-setuptools | ||
# install numpy first as it is a compile time dependency for other packages | ||
- pip install --upgrade numpy | ||
# install documentation building dependencies | ||
- pip install --upgrade matplotlib setuptools nose coverage sphinx pillow sphinx-gallery sphinx_bootstrap_theme cython numpydoc | ||
# Installing required packages for `make -C doc check command` to work. | ||
- sudo -E apt-get -yq update | ||
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra | ||
# Installing packages to build the random forest | ||
# finally install the requirements of the package to allow autodoc | ||
- pip install -r requirements.txt | ||
|
||
# The --user is needed to let sphinx see the source and the binaries | ||
# The pipefail is requested to propagate exit code | ||
override: | ||
- python setup.py clean | ||
- python setup.py develop | ||
- set -o pipefail && cd doc && make html 2>&1 | tee ~/log.txt | ||
test: | ||
# Grep error on the documentation | ||
override: | ||
- cat ~/log.txt && if grep -q "Traceback (most recent call last):" ~/log.txt; then false; else true; fi | ||
deployment: | ||
master: | ||
branch: master | ||
commands: | ||
- bash ci_scripts/push_doc.sh 'stable' | ||
development: | ||
branch: development | ||
commands: | ||
- bash ci_scripts/push_doc.sh 'dev' | ||
general: | ||
# Open the doc to the API | ||
artifacts: | ||
- "doc/_build/html" | ||
- "~/log.txt" | ||
# Restric the build to the branch master only | ||
branches: | ||
only: | ||
- development | ||
- master |
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,23 @@ | ||
{% extends "!layout.html" %} | ||
|
||
{# Custom CSS overrides #} | ||
{# set bootswatch_css_custom = ['_static/my-styles.css'] #} | ||
|
||
{# Add github banner (from: https://github.com/blog/273-github-ribbons). #} | ||
{% block header %} | ||
{{ super() }} | ||
<a href="https://github.com/automl/SMAC3" | ||
class="visible-desktop hidden-xs"><img | ||
id="gh-banner" | ||
style="position: absolute; top: 50px; right: 0; border: 0;" | ||
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" | ||
alt="Fork me on GitHub"></a> | ||
<script> | ||
// Adjust banner height. | ||
$(function () { | ||
var navHeight = $(".navbar .container").css("height"); | ||
$("#gh-banner").css("top", navHeight); | ||
}); | ||
</script> | ||
{% endblock %} | ||
|
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,7 @@ | ||
Contact | ||
======= | ||
|
||
SMAC v3 is developed by the `ML4AAD Group of the University of Freiburg <http://www.ml4aad.org/>`_. | ||
|
||
If you found a bug, please report to https://github.com/automl/SMAC3 | ||
|
Oops, something went wrong.