-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.drone.script
72 lines (68 loc) · 1.62 KB
/
.drone.script
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
def main():
return [
quality_pipeline(),
build_pipeline("8.0"),
build_pipeline("9.0"),
build_pipeline("9.1"),
build_pipeline("9.2"),
build_pipeline("10.0"),
build_pipeline("10.1"),
]
def quality_pipeline():
return {
'kind': 'pipeline',
'name': 'quality',
'platform': {
'os': "linux",
'arch': 'amd64',
},
'steps': [
{
'name': 'format',
'pull': 'never',
'image': 'patwie/clang-format:latest',
'commands': [
'./.ci/check.sh',
],
},
{
'name': 'lint',
'pull': 'never',
'image': 'patwie/cpplint:latest',
'commands': [
'cpplint --recursive .',
],
},
],
}
def build_pipeline(cuda_version):
return {
'kind': 'pipeline',
'name': 'CUDA %s' % cuda_version,
'platform': {
'os': "linux",
'arch': 'amd64',
},
'steps': [
{
'name': 'build',
'pull': 'never',
'image': 'patwie/cuda:%s' % cuda_version,
'commands': [
'mkdir build',
'cd build',
'cmake ..',
'make',
],
},
{
'name': 'test',
'pull': 'never',
'image': 'patwie/cuda:%s' % cuda_version,
'commands': [
'./build/test_cpu',
],
},
],
'depends_on': ['quality']
}