mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
5a0dbc530f
This uses credentials stored in the Taskcluster secret service. The task should only run on mozilla-central to avoid confusion between branches. MozReview-Commit-ID: 31XfTg0sCht --HG-- extra : rebase_source : c3ef4ec15ecd4fa0ec0b5af7aacddfa8d6dd90e0 extra : source : 19f92c04608cec275dab73e8acad5141de8a5c44
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
doc-generate:
|
|
description: Generate the Sphinx documentation
|
|
platform: lint/opt
|
|
treeherder:
|
|
symbol: tc(Doc)
|
|
kind: test
|
|
tier: 1
|
|
run-on-projects: [try]
|
|
worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
|
|
worker:
|
|
docker-image: {in-tree: "lint"}
|
|
max-run-time: 1800
|
|
artifacts:
|
|
- type: file
|
|
name: public/docs.tar.gz
|
|
path: /home/worker/checkouts/gecko/docs.tar.gz
|
|
run:
|
|
using: run-task
|
|
command: >
|
|
cd /home/worker/checkouts/gecko &&
|
|
./mach doc --outdir docs-out --no-open &&
|
|
rm -rf docs-out/html/Mozilla_Source_Tree_Docs/_venv &&
|
|
mv docs-out/html/Mozilla_Source_Tree_Docs docs &&
|
|
tar -czf docs.tar.gz docs
|
|
when:
|
|
files-changed:
|
|
- '**/*.py'
|
|
- '**/*.rst'
|
|
- 'tools/docs/**'
|
|
|
|
doc-upload:
|
|
description: Generate and upload the Sphinx documentation
|
|
platform: lint/opt
|
|
treeherder:
|
|
symbol: tc(DocUp)
|
|
kind: test
|
|
tier: 3
|
|
run-on-projects: [mozilla-central]
|
|
worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
|
|
worker:
|
|
docker-image: {in-tree: "lint"}
|
|
max-run-time: 1800
|
|
run:
|
|
using: run-task
|
|
command: >
|
|
cd /home/worker/checkouts/gecko &&
|
|
./mach upload-doc --bucket gecko-docs.mozilla.org --region us-west-2
|
|
scopes:
|
|
- secrets:get:project/releng/gecko/build/level-3/gecko-docs-upload
|
|
when:
|
|
files-changed:
|
|
- '**/*.py'
|
|
- '**/*.rst'
|
|
- 'tools/docs/**'
|