forked from mongodb/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mci.yml
51 lines (44 loc) · 1.15 KB
/
.mci.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
pre:
- command: git.get_project
params:
directory: "docs-mongodb"
- command: git.apply_patch
params:
directory: "docs-mongodb"
- command: shell.exec
params:
working_dir: "docs-mongodb"
script: |
rm -rf ~/venv
virtualenv ~/venv
${venv}/pip install -r requirements.txt
# make the current branch always be master.
git branch -D master || true
git checkout -b master origin/master
tasks:
- name: "build_manual"
commands:
- command: shell.exec
params:
working_dir: "docs-mongodb"
script: |
. ${venv}/activate
giza generate source
giza sphinx --builder publish --serial_sphinx
- command: shell.exec
params:
working_dir: "docs-mongodb"
script: |
. ${venv}/activate
giza env package --builder publish
giza packaging create --target push
# TODO: deploy build/archive/* to s3
buildvariants:
- name: ubuntu1404-release
display_name: "Ubuntu 14.04"
run_on:
- ubuntu1404-test
expansions:
venv: "~/venv/bin"
tasks:
- name: "build_manual"