machine: environment: # The github organization or username of the repository which hosts the # project and documentation. USERNAME: "openml" # The repository where the documentation will be hosted DOC_REPO: "openml-python" # 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: "feurerm@informatik.uni-freiburg.de" dependencies: # Various dependencies pre: - 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 pip - pip install --upgrade numpy - pip install --upgrade scipy - pip install git+https://github.com/mfeurer/liac-arff.git # install documentation building dependencies - pip install --upgrade matplotlib setuptools nose coverage sphinx pillow sphinx-gallery sphinx_bootstrap_theme cython numpydoc scikit-learn nbformat nbconvert # 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 # 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: develop 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: - master - develop