generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 4
/
ci.hocon
97 lines (83 loc) · 2.24 KB
/
ci.hocon
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
common : {
timelimit : "30:00",
catch_files : [
"Graal diagnostic output saved in (?P<filename>.+\.zip)"
],
environment: {
npm_config_registry: "https://artifacthub-phx.oci.oraclecorp.com/api/npm/npm-virtual/"
}
}
linux_jdk17 : {
capabilities : [linux, amd64],
downloads: {
JAVA_HOME: { name: "graalvm-ee", version: "java17", platformspecific: true }
},
environment: {
PATH: "${JAVA_HOME}/bin:${PATH}"
}
}
linux : ${common} {
packages: {
nodejs : ">=18.0.0"
maven: ">=3.6.3"
}
}
darwin : ${common} {
}
windows : ${common} {
}
linux-amd64 : ${linux} {
capabilities : [linux, amd64],
docker: {
"image" : "phx.ocir.io/oraclelabs2/c_graal/buildslave:buildslave_ol9",
"mount_modules": true
}
}
darwin-amd64 : ${darwin} {
capabilities : [darwin, amd64]
}
windows-amd64 : ${windows} {
capabilities : [windows, amd64]
}
vscodeCommon: {
timelimit : "30:00"
}
vscodeBuildGate : ${vscodeCommon} {
targets : [ gate ],
run : [
["npm", "run", "build"]
]
}
vscodeTestsCommon : ${vscodeCommon} {
deploysArtifacts: true,
python_version: 3,
run : [
["artifact_download", "vscode-extensions/tests_cache-linux-amd64", "tests_cache-linux-amd64.zip"],
["unzip", "-q", "tests_cache-linux-amd64.zip", ".vscode-test/*", "-d", "gcn"],
["chmod", "-R", "+x", "./gcn/.vscode-test"],
["npm", "run", "tests"]
]
}
vscodeRunTests : ${vscodeTestsCommon} {
targets : [ gate ],
}
vscodeTestsDaily : ${vscodeTestsCommon} {
targets : [ daily ],
environment: {
EXTESTER_EXTENSION_LIST: "asf.apache-netbeans-java,vscjava.vscode-java-pack,oracle-labs-graalvm.gcn,oracle-labs-graalvm.graalvm,oracle-labs-graalvm.oci-devops",
TEST_GLOB_PATTERN: "**/extension.test.js",
MOCHA_EXTENSION_LIST: "asf.apache-netbeans-java,redhat.java,vscjava.vscode-java-pack,vscjava.vscode-java-debug,ms-kubernetes-tools.vscode-kubernetes-tools"
},
run: [
["npm", "run", "tests:oci-devops"],
["npm", "run", "tests-ui"]
],
notify_emails: [
]
}
builds += [
# ${linux-amd64} ${vscodeRunTests} { name: "gate-vscode-tests" },
# ${linux-amd64} ${vscodeTestsDaily} { name: "daily-vscode-tests" },
${linux-amd64} ${linux_jdk17} ${vscodeBuildGate} { name: "gate-vscode-build" }
]