forked from replit/polygott
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclojure.toml
41 lines (37 loc) · 940 Bytes
/
clojure.toml
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
name = "clojure"
entrypoint = "main.clj"
extensions = [
"clj",
"cljc",
"cljs",
"edn"
]
packages = [
"openjdk-11-jre-headless"
]
setup = [
"wget https://download.clojure.org/install/linux-install-1.10.1.478.sh",
"chmod +x linux-install-1.10.1.478.sh",
"./linux-install-1.10.1.478.sh",
"rm linux-install-1.10.1.478.sh",
# this ensures that we cache the maven deps in the image ($XDG_CONFIG_HOME)
# https://clojure.org/reference/deps_and_cli#_command_line_tools
# pretty ridiculous but what else can you do?
"clojure -Sverbose -Sdeps '{:mvn/local-repo \"/home/runner/.m2/repository\"}' --eval ''",
"mv /root/.m2/repository $XDG_CONFIG_HOME/clojure/repository && rm -rf /root/.m2",
"/usr/bin/build-prybar-lang.sh clojure"
]
versionCommand = [
"clojure",
"-e",
"(clojure-version)"
]
[run]
command = [
"clojure",
"main.clj"
]
[tests]
[tests.hello]
code = "(println \"hello\")"
output = "hello\n"