-
Notifications
You must be signed in to change notification settings - Fork 3
/
.drone.jsonnet
69 lines (67 loc) · 1.36 KB
/
.drone.jsonnet
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
local image = "localhost:5000/jla/base";
local boostArg(v) = "-DBOOST_ROOT=/opt/boost/%s" % v;
local Pipeline(withCoverage, compiler, boost) = {
kind: "pipeline",
name: "%s, Boost %s" % [compiler, boost],
steps: [
{
name: "bootstrap",
image: image,
commands: [
"git fetch --tags",
"git submodule update --init --recursive",
"./bootstrap.sh",
],
},
{
name: "build",
image: image,
environment: {
CXX: compiler,
CXXFLAGS: "-Werror",
},
commands: [
"mkdir build",
"cd build",
"cmake ../ -DBUILD_BIN_BENCHMARK=on -DBUILD_BIN_ALL_ALG=on -DBUILD_EXAMPLES=on -DBUILD_TESTING=on -DBUILD_TESTING_SANITIZERS=off %s" % [boostArg(boost)],
"make",
],
},
{
name: "install",
image: image,
commands: [
"cd build",
"make install",
],
},
{
name: "build-test",
image: image,
commands: [
"cd build",
"make tests",
],
},
{
name: "test",
image: image,
commands: [
"cd build",
"make install",
"ctest --output-on-failure",
],
},
],
};
[
Pipeline(boost == "1_74_0" && compiler == "g++-9", compiler, boost)
for compiler in [
"g++-7", "g++-8", "g++-9", "g++-10",
"clang++-6.0", "clang++-7", "clang++-8", "clang++-9", "clang++-10", "clang++-11"
]
for boost in [
"1_67_0", "1_68_0", "1_69_0", "1_70_0", "1_71_0",
"1_72_0", "1_73_0", "1_74_0", "1_75_0",
]
]