Commit 878cc159 authored by Kim Nguyễn's avatar Kim Nguyễn
Browse files

Tentative multistage yaml config file.

Remove spurious code with 'Printexc.backtrace'
parent 2fdd3bda
default:
image: docker-cduce:latest
before_script:
- echo "$USER"
- eval `opam config env`
- echo "$PATH"
- opam update -y
- opam upgrade -y
build-test:
stages:
- compile
- test
- package
.compile_template: &compile_template
script:
- dune build @binary
.test_template: &test_template
script:
- dune build @runtest
.package_template: &package_template
script:
- sh tools/init_opam_switch.sh
- dune build -j 4
- opam pin -y cduce-types .
- opam pin -y cduce .
compile:4.07.1:
image:ocaml-cduce:compile
<<: *4.07.1_template
compile:4.08.1:
image:ocaml-cduce:compile
<<: *4.08.1_template
compile:4.09.1:
image:ocaml-cduce:compile
<<: *4.09.1_template
compile:4.10.2:
image:ocaml-cduce:compile
<<: *4.10.2_template
compile:4.11.2:
image:ocaml-cduce:compile
<<: *4.11.2_template
compile:4.12.0:
image:ocaml-cduce:compile
<<: *4.12.0_template
test:4.07.1:
image:ocaml-cduce:test
<<: *4.07.1_template
test:4.08.1:
image:ocaml-cduce:test
<<: *4.08.1_template
test:4.09.1:
image:ocaml-cduce:test
<<: *4.09.1_template
test:4.10.2:
image:ocaml-cduce:test
<<: *4.10.2_template
test:4.11.2:
image:ocaml-cduce:test
<<: *4.11.2_template
test:4.12.0:
image:ocaml-cduce:test
<<: *4.12.0_template
package:4.07.1:
image:ocaml-cduce:package
<<: *4.07.1_template
package:4.08.1:
image:ocaml-cduce:package
<<: *4.08.1_template
package:4.09.1:
image:ocaml-cduce:package
<<: *4.09.1_template
package:4.10.2:
image:ocaml-cduce:package
<<: *4.10.2_template
package:4.11.2:
image:ocaml-cduce:package
<<: *4.11.2_template
package:4.12.0:
image:ocaml-cduce:package
<<: *4.12.0_template
......@@ -39,3 +39,8 @@
(target cduce_lib_js.ml)
(action
(write-file %{target} "include Cduce_core\ninclude Cduce_jsoo_backend")))
(rule
(alias binary)
(deps driver/cduce.exe driver/cduce_js_top.bc.js)
(action (echo "")))
\ No newline at end of file
(* Compatibilty for OCaml 4.11 & 4.12 *)
open Cduce_core
let () =Printexc.record_backtrace true
let longident_parse s =
let open Ocaml_common in
let rec loop first s =
......
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