-
Notifications
You must be signed in to change notification settings - Fork 8
/
circle.yml
51 lines (44 loc) · 1.48 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
machine:
environment:
# The github organization or username of the repository which hosts the
# project and documentation.
USERNAME: "joshloyal"
# The repository where the documentation will be hosted
DOC_REPO: "l1tf"
# 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]"
MINICONDA_PATH: $HOME/miniconda
CONDA_ENV_NAME: docenv
dependencies:
# Various dependencies
pre:
- sudo -E apt-get -yq remove texlive-binaries --purge
- sudo apt-get update
- sudo apt-get install pandoc
# install numpy first as it is a compile time dependency for other packages
# 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
override:
- bash ci_scripts/circleci/build_doc.sh:
timeout: 3600 # seconds
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:
push:
branch: master
commands:
- bash ci_scripts/circleci/push_doc.sh
general:
# Open the doc to the API
artifacts:
- "doc/_build/html"
- "~/log.txt"
# Restric the build to the branch master only
branches:
ignore:
- gh-pages