-
Notifications
You must be signed in to change notification settings - Fork 0
/
jobs-pr.yaml
108 lines (105 loc) · 3.22 KB
/
jobs-pr.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
- job-group:
name: 'bsd-ci-pull_request'
jobs:
- 'CADETS/bsd/pull_request/build'
- 'CADETS/bsd/pull_request/test-vm'
- 'CADETS/bsd/pull_request/test'
- job-template:
name: 'CADETS/bsd/pull_request/build'
description: FreeBSD trunk from the CADETS project ('pull_request' branch)
defaults: global
properties:
- github:
url: https://github.com/cadets/freebsd/
timeout: 30
- wall-display:
text: PR build
scm:
- git:
url: https://github.com/cadets/freebsd
timeout: 30
refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
branches:
- '${{sha1}}'
basedir: freebsd
- git:
url: https://github.com/cadets/cadets-ci
basedir: cadets-ci
triggers:
- github-pull-request:
admin-list:
- lwhsu
org-list:
- cadets
github-hooks: true
builders:
- copyartifact:
project: '../../LLVM-cadets'
which-build: last-successful
fallback-to-last-successful: true
filter: 'llvm.txz'
- copyartifact:
project: '../../Loom'
which-build: last-successful
fallback-to-last-successful: true
filter: 'loom.txz'
- copyartifact:
project: '../../llvm-prov'
which-build: last-successful
fallback-to-last-successful: true
filter: 'llvm-prov.txz'
- shell: tar -zxvf BUILD_TYPE=Release/llvm.txz && tar -zxvf BUILD_TYPE=Release/loom.txz && tar -zxvf BUILD_TYPE=Release/llvm-prov.txz
- shell: sh -ex cadets-ci/scripts/cadets-build.sh
publishers:
- scan-clang-warnings
- archive:
artifacts: 'release-artifacts/MANIFEST, release-artifacts/base.txz, release-artifacts/kernel.txz, release-artifacts/tests.txz'
- trigger:
project: 'test-vm'
condition: SUCCESS
- job-template:
name: 'CADETS/bsd/pull_request/test-vm'
defaults: global
properties:
- wall-display:
text: PR VM
node: vm_host
scm:
- git:
url: https://github.com/cadets/cadets-ci
basedir: cadets-ci
builders:
- copyartifact:
project: 'build'
which-build: upstream-build
fallback-to-last-successful: true
filter: 'release-artifacts/MANIFEST, release-artifacts/base.txz, release-artifacts/kernel.txz, release-artifacts/tests.txz'
flatten: true
- shell: sh -ex cadets-ci/scripts/cadets-test-vm.sh
publishers:
- archive:
artifacts: 'disk-test.img.xz'
- trigger:
project: 'test'
threshold: SUCCESS
- job-template:
name: 'CADETS/bsd/pull_request/test'
defaults: global
properties:
- wall-display:
text: PR test
node: vm_host
scm:
- git:
url: https://github.com/cadets/cadets-ci
basedir: cadets-ci
builders:
- copyartifact:
project: 'test-vm'
which-build: upstream-build
fallback-to-last-successful: true
filter: 'disk-test.img.xz'
flatten: true
- shell: sh -ex cadets-ci/scripts/cadets-test.sh
publishers:
- publish-junit-results