forked from automl/SMAC3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
60 lines (53 loc) · 1.97 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
52
53
54
55
56
57
58
59
60
machine:
environment:
PATH: /home/ubuntu/miniconda/bin:$PATH
# 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:
# Get rid of existing virtualenvs on circle ci as they conflict with conda.
# From nilearn: https://github.com/nilearn/nilearn/blob/master/circle.yml
- cd && rm -rf ~/.pyenv && rm -rf ~/virtualenvs
# from scikit-learn contrib
- sudo -E apt-get -yq remove texlive-binaries --purge
- 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
# Conda installation
- wget "https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" -O ~/miniconda.sh
- bash ~/miniconda.sh -b -p $HOME/miniconda
- conda create -n testenv --yes python=3.6 pip wheel nose gxx_linux-64 gcc_linux-64 swig
# The --user is needed to let sphinx see the source and the binaries
# The pipefail is requested to propagate exit code
override:
- source ci_scripts/circle_install.sh
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