|
1 | | -pre: |
2 | | - - command: git.get_project |
3 | | - params: |
4 | | - directory: "docs-mongodb" |
5 | | - - command: git.apply_patch |
6 | | - params: |
7 | | - directory: "docs-mongodb" |
8 | | - - command: shell.exec |
9 | | - params: |
10 | | - working_dir: "docs-mongodb" |
11 | | - script: | |
12 | | - rm -rf ~/venv |
13 | | -
|
14 | | - virtualenv ~/venv |
15 | | - ${venv}/pip install -r requirements.txt |
16 | | -
|
17 | | - # make the current branch always be master. |
18 | | - git branch -D master || true |
19 | | - git checkout -b master origin/master |
20 | | -
|
21 | | -tasks: |
22 | | - - name: "build_manual" |
23 | | - commands: |
24 | | - - command: shell.exec |
25 | | - params: |
26 | | - working_dir: "docs-mongodb" |
27 | | - script: | |
28 | | - . ${venv}/activate |
29 | | -
|
30 | | - giza generate source |
31 | | - giza sphinx --builder publish --serial_sphinx |
32 | | - - command: shell.exec |
33 | | - params: |
34 | | - working_dir: "docs-mongodb" |
35 | | - script: | |
36 | | - . ${venv}/activate |
37 | | -
|
38 | | - giza env package --builder publish |
39 | | - giza packaging create --target push |
40 | | -
|
41 | | - # TODO: deploy build/archive/* to s3 |
42 | | - |
43 | | -buildvariants: |
44 | | - - name: ubuntu1404-release |
45 | | - display_name: "Ubuntu 14.04" |
46 | | - run_on: |
47 | | - - ubuntu1404-test |
48 | | - expansions: |
49 | | - venv: "~/venv/bin" |
50 | | - tasks: |
51 | | - - name: "build_manual" |
| 1 | +--- |
| 2 | +buildvariants: |
| 3 | + - |
| 4 | + display_name: "Ubuntu 16.04" |
| 5 | + expansions: |
| 6 | + venv: ~/venv/bin |
| 7 | + name: ubuntu1604 |
| 8 | + run_on: |
| 9 | + - ubuntu1604-test |
| 10 | + tasks: |
| 11 | + - |
| 12 | + name: build-docs |
| 13 | +tasks: |
| 14 | + - |
| 15 | + commands: |
| 16 | + - |
| 17 | + command: git.get_project |
| 18 | + params: |
| 19 | + directory: docs-mongodb |
| 20 | + type: setup |
| 21 | + - |
| 22 | + command: shell.exec |
| 23 | + params: |
| 24 | + script: | |
| 25 | + rm -rf ~/venv |
| 26 | + |
| 27 | + virtualenv ~/venv |
| 28 | + ${venv}/pip install -r requirements.txt |
| 29 | + working_dir: docs-mongodb |
| 30 | + - |
| 31 | + command: shell.exec |
| 32 | + params: |
| 33 | + script: | |
| 34 | + # remember that this script should be silent if it |
| 35 | + # manipulates keys |
| 36 | + mkdir ~/.config |
| 37 | + touch ~/.config/giza-aws-authentication.conf |
| 38 | + echo "${aws_key}" > ~/.config/giza-aws-authentication.conf |
| 39 | + echo "${aws_secret}" >> ~/.config/giza-aws-authentication.conf |
| 40 | + chmod 600 ~/.config/giza-aws-authentication.conf |
| 41 | + |
| 42 | + # as an alternative, you could pass the aws keys to the |
| 43 | + # makefile directly if it supports that |
| 44 | + shell: bash |
| 45 | + silent: true |
| 46 | + - |
| 47 | + command: shell.exec |
| 48 | + params: |
| 49 | + script: | |
| 50 | + export USER=${github_author} |
| 51 | + . ${venv}/activate |
| 52 | + |
| 53 | + if [ "${is_patch}" != "true" ]; then |
| 54 | + make publish |
| 55 | + make deploy |
| 56 | + else |
| 57 | + make html |
| 58 | + make stage |
| 59 | + fi |
| 60 | + shell: bash |
| 61 | + working_dir: docs-mongodb |
| 62 | + name: build-docs |
0 commit comments