|
| 1 | +machine: |
| 2 | + environment: |
| 3 | + # The github organization or username of the repository which hosts the |
| 4 | + # project and documentation. |
| 5 | + USERNAME: "glemaitre" |
| 6 | + |
| 7 | + # The repository where the documentation will be hosted |
| 8 | + DOC_REPO: "UnbalancedDataset" |
| 9 | + |
| 10 | + # The base URL for the Github page where the documentation will be hosted |
| 11 | + DOC_URL: "" |
| 12 | + |
| 13 | + # The email is to be used for commits in the Github Page |
| 14 | + |
| 15 | + |
| 16 | +dependencies: |
| 17 | + |
| 18 | + # Various dependencies |
| 19 | + pre: |
| 20 | + - sudo -E apt-get -yq remove texlive-binaries --purge |
| 21 | + - sudo apt-get update |
| 22 | + - sudo apt-get install libatlas-dev libatlas3gf-base |
| 23 | + - sudo apt-get install build-essential python-dev python-setuptools |
| 24 | + # install numpy first as it is a compile time dependency for other packages |
| 25 | + - pip install --upgrade numpy |
| 26 | + - pip install --upgrade scipy matplotlib setuptools nose coverage sphinx pillow sphinx-gallery sphinx_rtd_theme |
| 27 | + # Installing required packages for `make -C doc check command` to work. |
| 28 | + - sudo -E apt-get -yq update |
| 29 | + - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra |
| 30 | + - pip install --upgrade cython numpydoc |
| 31 | + - pip install --upgrade scikit-learn |
| 32 | + |
| 33 | + # The --user is needed to let sphinx see the source and the binaries |
| 34 | + # The pipefail is requested to propagate exit code |
| 35 | + override: |
| 36 | + - python setup.py clean |
| 37 | + - python setup.py develop |
| 38 | + - set -o pipefail && cd doc && make html 2>&1 | tee ~/log.txt |
| 39 | +test: |
| 40 | + # Grep error on the documentation |
| 41 | + override: |
| 42 | + - cat ~/log.txt && if grep -q "Traceback (most recent call last):" ~/log.txt; then false; else true; fi |
| 43 | +deployment: |
| 44 | + push: |
| 45 | + branch: master |
| 46 | + commands: |
| 47 | + - bash build_tools/circle/push_doc.sh |
| 48 | +general: |
| 49 | + # Open the doc to the API |
| 50 | + artifacts: |
| 51 | + - "doc/_build/html" |
| 52 | + - "~/log.txt" |
| 53 | + # Restric the build to the branch master only |
| 54 | + branches: |
| 55 | + ignore: |
| 56 | +- gh-pages |
0 commit comments