forked from oracle/graal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish-javadoc.hocon
42 lines (41 loc) · 1.7 KB
/
publish-javadoc.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
# Publish Javadoc of graal components post-merge
builds += [
${linux-amd64} ${oraclejdk8} {
timelimit : "30:00",
run : [
[cd, "./sdk"],
["mx", "build"],
["mx", "javadoc"],
["zip", "-r", "javadoc.zip", "javadoc"],
[cd, "../truffle"],
["mx", "build"],
["mx", "javadoc"],
["zip", "-r", "javadoc.zip", "javadoc"],
[cd, "../tools"],
["mx", "build"],
["mx", "javadoc"],
["zip", "-r", "javadoc.zip", "javadoc"],
[cd, "../compiler"],
["mx", "build"],
["mx", "javadoc", "--projects", "org.graalvm.graphio"],
["cd", "src/org.graalvm.graphio/"],
["zip", "-r", "../../graphio-javadoc.zip", "javadoc"],
[cd, "../../.."],
["git", "fetch", "origin", "gh-pages"],
["git", "checkout", "-f", "FETCH_HEAD", "-B", "gh-pages"],
["rm", "-rf", "sdk/javadoc", "truffle/javadoc", "tools/javadoc", "graphio/javadoc"],
["git", "status" ],
["unzip", "-o", "-d", "sdk", "sdk/javadoc.zip"],
["unzip", "-o", "-d", "truffle", "truffle/javadoc.zip"],
["unzip", "-o", "-d", "tools", "tools/javadoc.zip"],
["unzip", "-o", "-d", "graphio", "compiler/graphio-javadoc.zip"],
["git", "add", "sdk/javadoc", "truffle/javadoc", "tools/javadoc", "graphio/javadoc"],
["git", "config", "user.name", "Javadoc Publisher"],
["git", "config", "user.email", "[email protected]"],
["git", "diff", "--staged", "--quiet", "||", "git", "commit", "-m", [ "echo", "Javadoc as of", [ "date", "+%Y/%m/%d" ] ] ],
["git", "push", "origin", "gh-pages"],
],
targets : [post-merge],
name: "graal-publish-javadoc"
}
]