Update opam file for tests

Add test commands and test dependencies
This commit is contained in:
Rudi Grinberg 2017-12-13 01:30:29 +08:00
parent 2cab60b150
commit 5b0ef635ac
1 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,9 @@ build: [
["./boot.exe" "--subst"] {pinned}
["./boot.exe" "-j" jobs]
]
build-test: [
["./_build/default/bin/main.exe" "runtest" "-p" name "-j" jobs]
]
depends: [
# ocamlfind is not mandatory to build packages using
# jbuilder. However if it is present jbuilder will use it. Making
@ -18,5 +21,10 @@ depends: [
# it is only a runtime dependency so that reinstalling ocamlfind
# doesn't resintall jbuilder
"ocamlfind" {build}
"menhir" {test}
"reason" {test}
"ocaml-migrate-parsetree" {test}
"odoc" {test}
"js_of_ocaml-compiler" {test}
]
available: [ ocaml-version >= "4.02.3" ]