Commit 842e47fd authored by Seb Mondet's avatar Seb Mondet

Try to get to a GUI app build

parent bda666f8
......@@ -15,6 +15,7 @@ depends: [
"astring"
"bos"
"atdgen"
"genspio"
"jbuilder" {build}
"ocamlfind" {build}
]
\ No newline at end of file
......@@ -29,32 +29,57 @@ let examples =
let root_opt = "--root=/opam-root" in
let yes = "--yes" in
let opam cmd l =
[opam_bin; cmd; root_opt] @ l @ [yes] in
[opam_bin; cmd; root_opt] @ l in
let opam_exec l =
opam "config" @@ ["exec"; root_opt; "--"] @ l in
opam "config" @@ ["exec"; "--"] @ l in
let add_pin pkg url =
opam_exec ["opam"; "pin"; "add"; pkg; yes; "-n"; url] in
let pin_gitlab pkg =
add_pin pkg (strf "https://gitlab.com/smondet/%s.git" pkg) in
let opam_install l =
opam_exec (["opam"; "install"; yes] @ l) in
let ocaml_version = "4.06.0+trunk" in
within (qemu_arm debian_wheezy) [
ensure (executables_available ["unzip"; "gcc"; "make"]) [
ensure (executables_available ["unzip"; "gcc"; "make"; "git"]) [
["sh"; "-c";
"echo 'deb http://ftp.debian.org/debian wheezy-backports main' >> /etc/apt/sources.list"];
["apt-get"; "update"];
["apt-get"; "install"; "--yes"; "build-essential"; "unzip"];
["apt-get"; "install"; "--yes"; "build-essential"; "unzip"; "git"];
];
ensure (md5 opam_bin (`Contains "46e25cc5b26")) [
[
"wget";
"https://github.com/ocaml/opam/releases/download/1.2.2/opam-1.2.2-armv7l-Linux";
"-O"; opam_bin
];
["wget";
"https://github.com/ocaml/opam/releases/download/1.2.2/opam-1.2.2-armv7l-Linux";
"-O"; opam_bin];
];
exec ["chmod"; "a+x"; "/usr/local/bin/opam"];
ensure (tests [
file_exists "/opam-root/4.03.0/bin/ocamlopt"
ksprintf file_exists "/opam-root/%s/bin/ocamlopt" ocaml_version
]) [
["rm"; "-rf"; "/opam-root"];
opam "init" ["--comp"; "4.03.0" ];
opam "init" [yes; "--comp"; ocaml_version ];
];
ensure (returns_zero @@ opam_exec ["ketrew"; "--version"]) [
opam_exec ["install"; "ketrew"];
ensure (returns_zero @@ opam_exec ["opam-depext"; "--version"]) [
opam_install ["depext"]; (* ; "js_of_ocaml-lwt"; "cohttp-lwt-unix"; "rresult"]; *)
];
get_executable "/opam-root/4.03.0/bin/ketrew" ~dest:"ketrew-armv7l-bin";
ensure (returns_zero @@ opam_exec ["vimebac"; "--version"]) [
(* opam_exec ["opam"; "remove"; "--yes"; "ocamlfind"]; *)
(* pin_gitlab "misuja"; *)
pin_gitlab "vimebac";
opam_exec ["opam"; "depext"; "--yes"; "vimebac"];
opam_install ["vimebac"];
];
get_executable
(strf "/opam-root/%s/bin/vimebac" ocaml_version)
~dest:"vimebac-armv7l-bin";
ensure (returns_zero @@ opam_exec ["vecosek"; "--version"]) [
(* add_pin "uri" "1.9.2"; *)
pin_gitlab "vecosek";
opam_exec ["opam"; "depext"; "--yes"; "vecosek"];
opam_install ["vecosek"; ];
];
get_executable
(strf "/opam-root/%s/bin/vecosek" ocaml_version)
~dest:"vecosek-armv7l-bin";
]
);
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment