forked from graalvm/mx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathci.jsonnet
134 lines (131 loc) · 3.49 KB
/
ci.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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
local
jdks = (import "common.json").jdks,
java = {
downloads+: {
JAVA_HOME: jdks.oraclejdk8
}
},
oraclejdk_jvmci = jdks.oraclejdk8,
gate = java + {
targets: ['gate'],
packages+: {
"pip:pylint": "==1.9.3",
},
downloads+: {
JDT: {name: 'ecj', version: "4.5.1", platformspecific: false},
ECLIPSE: {name: 'eclipse', version: "4.5.2", platformspecific: true},
},
environment+: {
# Required to keep pylint happy on Darwin
# https://coderwall.com/p/-k_93g/mac-os-x-valueerror-unknown-locale-utf-8-in-python
LC_ALL: "en_US.UTF-8",
},
run: [
["./mx", "--strict-compliance", "gate", "--strict-mode"],
],
timelimit: "10:00",
},
gate_unix = gate + {
environment+: {
ECLIPSE_EXE: "$ECLIPSE/eclipse",
}
},
gate_darwin = gate + {
environment+: {
ECLIPSE_EXE: "$ECLIPSE/Contents/MacOS/eclipse",
}
},
gate_windows = gate + {
environment+: {
ECLIPSE_EXE: "$ECLIPSE\\eclipse.exe",
},
run: [
["./mx", "--strict-compliance", "gate", "--strict-mode", "--tags", "fullbuild"],
],
},
bench_test = java + {
targets: ['gate'],
run: [
["./mx", "benchmark", "--results-file", "bench-results.json", "--ignore-suite-commit-info=mx", "test"],
],
teardown: [
["bench-uploader.py", "bench-results.json"],
],
},
jmh_test = java + {
targets: ['gate'],
setup: [
["./mx", "build"],
],
run: [
["./mx", "benchmark", "--ignore-suite-commit-info=mx", "jmh-dist:*"],
]
},
downstream_truffleruby = {
targets: ['gate'],
downloads+: {
JAVA_HOME: oraclejdk_jvmci,
},
packages+: {
llvm: "==3.8",
ruby: ">=2.0.0",
},
environment+: {
PATH: "$BUILD_DIR/main:$LLVM/bin:$PATH",
},
run: [
["./mx", 'testdownstream', '--repo', "https://github.com/graalvm/truffleruby.git", '--mx-command', "ruby_testdownstream_hello"],
],
timelimit: "10:00",
},
nocache = {
environment+: {
MX_CACHE_DIR: "/tmp/.gate_fresh_mx_cache",
},
setup: [
['rm', '-rf', "/tmp/.gate_fresh_mx_cache"],
],
teardown: [
['rm', '-rf', "/tmp/.gate_fresh_mx_cache"],
],
},
python2 = {
environment+: {
MX_PYTHON_VERSION: "2",
},
},
python3 = {
environment+: {
MX_PYTHON_VERSION: "3",
},
}
;
{
# Overlay
java8: oraclejdk_jvmci,
java11: jdks['labsjdk-ee-11'],
overlay: '880178a26b561fec09499eb7ba6978f9ecb87148',
builds: [
gate_unix + {capabilities: ['linux', 'amd64'], name: "gate-linux-amd64-python2"} + python2,
gate_unix + {capabilities: ['linux', 'amd64'], name: "gate-linux-amd64-python3"} + python3,
gate_darwin + {capabilities: ['darwin_sierra', 'amd64'], name: "gate-darwin-amd64-python3"} + python3,
gate_windows + {capabilities: ['windows', 'amd64'], name: "gate-windows-amd64"},
bench_test + {capabilities: ['linux', 'amd64'], name: "bench-linux-amd64"},
jmh_test + {capabilities: ['linux', 'amd64'], name: "test-jmh-linux-amd64"},
downstream_truffleruby + {capabilities: ['linux', 'amd64'], name: "downstream-truffleruby-binary-truffle"},
downstream_truffleruby + nocache + {capabilities: ['linux', 'amd64'], name: "downstream-truffleruby-binary-truffle-nocache"},
{
capabilities: ['linux', 'amd64'], targets: ['gate'], name: "gate-version-update-check",
run: [
[ "./tag_version.py", "--check-only", "HEAD" ],
],
},
{
capabilities: ['linux', 'amd64'], targets: ['post-merge'], name: "post-merge-tag-version",
run: [
[ "./tag_version.py", "HEAD" ],
],
notify_emails: [ "[email protected]" ],
}
]
}