gecko-dev/taskcluster/ci/source-test/doc.yml
Dustin J. Mitchell 5a0dbc530f Bug 1382729: Upload documentation to S3 automatically; r=gps
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
2017-07-28 18:32:04 +00:00

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/**'