-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.t
62 lines (55 loc) · 1.43 KB
/
run.t
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
Create an empty config to avoid searching into the runner environments file system
$ mkdir .nomad && echo "()" > .nomad/config.sexp
Initialize a new executable
$ echo '((author "Shon Feder") (username shonfeder))' > config.sexp
$ nomad new --bin new_project --config config.sexp | grep -o "Initiate project"
Initiate project
$ ls -a new_project
.
..
.git
.gitignore
.ocamlformat
bin
dune-project
lib
new_project.opam
test
We can build the project
$ cd new_project && dune build
And the generated opam file has the expected contents
$ cat new_project.opam
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Short description"
description: "Longer description"
maintainer: ["Shon Feder"]
authors: ["Shon Feder"]
license: "MIT"
homepage: "https://github.com/shonfeder/new_project"
bug-reports: "https://github.com/shonfeder/new_project/issues"
depends: [
"dune" {>= "2.9" & > "2.9"}
"ocaml"
"alcotest" {with-test}
"qcheck" {with-test}
"qcheck-alcotest" {with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/shonfeder/new_project.git"