-
Notifications
You must be signed in to change notification settings - Fork 0
/
cider-ci.yml
58 lines (53 loc) · 2.02 KB
/
cider-ci.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
jobs:
## NOTE: disabled, trait is broken <https://ci.zhdk.ch/cider-ci/ui/workspace/trials/77208ee1-9ae2-4c59-9a7d-b9253b5593a1/scripts/body#stderr>
build-docs:
name: Build Docs
description: Ensures docs can be built, attaches result for inspection
run_when:
always:
type: branch
include_match: ".*"
exclude_match: '^.*(no-ci|hotspot).*$'
context:
task_defaults:
priority: 100 # runs seldom but fast
# traits: { mkdocs: true, Cislave3: true }
tree_attachments:
docs: { include_match: build.tgz, content_type: application/gzip }
# NOTE: <https://ci.zhdk.ch/cider-ci/ui/workspace/trials/0d62fdb8-14dd-4f50-9444-8f977e15cfaa/scripts/body>
# > WARNING - Config value: 'options'. Warning: Unrecognised configuration name: options
# > ERROR - Config value: 'theme'. Error: Unrecognised theme 'readthedocs'. The available installed themesare:
# > Aborted with 1 Configuration Errors!
task: "echo 'disabled because mkdocs broke'"
# task: mkdocs build --clean && tar -czf docs.tgz build
trigger-rtfd:
# TODO: maybe be more efficient, this always triggers everybodies branches.
# NOTE: the master branch is triggered from github
name: Trigger ReadTheDocs.org
run_when:
on branches ending in master: { type: branch, include_match: "master$" }
context:
task_defaults:
traits: { curl: true }
priority: 100 # runs seldom but fast
task: |
for BRANCH in ts_master mk_master mfa_master bw_master mp_master; do
curl -s -X POST -d "version_slug=${BRANCH}" http://readthedocs.org/build/madek
done
merged-to-master:
name: "Merged to master"
priority: 999
depends_on:
master branch matches:
type: branch
include_match: ^master$
run_when:
master branch matches:
type: branch
include_match: ^master$
context:
tasks:
merged-to-master:
scripts:
test:
body: "exit 0"