-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #627 from edwintorok/consistent
Make xs-opam self-consistent and able to run unit tests
- Loading branch information
Showing
9 changed files
with
185 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
opam-version: "2.0" | ||
maintainer: "Romain Calascibetta <romain.calascibetta@gmail.com>" | ||
authors: "Romain Calascibetta <romain.calascibetta@gmail.com>" | ||
homepage: "https://github.com/mirage/bechamel" | ||
bug-reports: "https://github.com/mirage/bechamel/issues" | ||
dev-repo: "git+https://github.com/mirage/bechamel.git" | ||
doc: "https://mirage.github.io/bechamel/" | ||
license: "MIT" | ||
synopsis: "CLI generator for bechamel's output" | ||
description: """A simple tool to generate a CLI output with notty | ||
which shows results from bechamel's benchmarks (as core_bench).""" | ||
|
||
build: [ | ||
[ "dune" "build" "-p" name "-j" jobs ] | ||
[ "dune" "runtest" "-p" name "-j" jobs ] {with-test} | ||
] | ||
|
||
depends: [ | ||
"ocaml" {>= "4.08.0"} | ||
"dune" {>= "2.0.0"} | ||
"bechamel" {= version} | ||
"notty" | ||
"fmt" {>= "0.9.0"} | ||
] | ||
url { | ||
src: | ||
"https://github.com/mirage/bechamel/releases/download/v0.3.0/bechamel-0.3.0.tbz" | ||
checksum: [ | ||
"sha256=d719040841a1a3be6f93699ae9bf1f8cb2c5d294f0218c0bc0a735386c2d71a0" | ||
"sha512=dc1233d4dcf01a997a3fcbafc116df0aae22ea5a6c98c09e200e4aa984c558976c8290b3e14b1156519ad12a6cc4b1b9fa4adf3dc2458d373d77a07fb9f7acff" | ||
] | ||
} | ||
x-commit-hash: "adf2b19fe09be6f405f11a69e15845529a5d80b7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
opam-version: "2.0" | ||
maintainer: "Romain Calascibetta <romain.calascibetta@gmail.com>" | ||
authors: "Romain Calascibetta <romain.calascibetta@gmail.com>" | ||
homepage: "https://github.com/mirage/bechamel" | ||
bug-reports: "https://github.com/mirage/bechamel/issues" | ||
dev-repo: "git+https://github.com/mirage/bechamel.git" | ||
doc: "https://mirage.github.io/bechamel/" | ||
license: "MIT" | ||
synopsis: "Yet Another Benchmark in OCaml" | ||
description: """BEnchmark for a CHAMEL/camel/caml which | ||
is agnostic to the system. It's a micro-benchmark tool | ||
which lets the user to re-analyzes and prints samples.""" | ||
|
||
build: [ | ||
[ "dune" "build" "-p" name "-j" jobs ] | ||
[ "dune" "runtest" "-p" name "-j" jobs ] {with-test} | ||
] | ||
|
||
depends: [ | ||
"ocaml" {>= "4.08.0"} | ||
"dune" {>= "2.0.0"} | ||
"fmt" {>= "0.9.0"} | ||
"base-bytes" | ||
"stdlib-shims" | ||
] | ||
url { | ||
src: | ||
"https://github.com/mirage/bechamel/releases/download/v0.3.0/bechamel-0.3.0.tbz" | ||
checksum: [ | ||
"sha256=d719040841a1a3be6f93699ae9bf1f8cb2c5d294f0218c0bc0a735386c2d71a0" | ||
"sha512=dc1233d4dcf01a997a3fcbafc116df0aae22ea5a6c98c09e200e4aa984c558976c8290b3e14b1156519ad12a6cc4b1b9fa4adf3dc2458d373d77a07fb9f7acff" | ||
] | ||
} | ||
x-commit-hash: "adf2b19fe09be6f405f11a69e15845529a5d80b7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
opam-version: "2.0" | ||
maintainer: "Jane Street developers" | ||
authors: ["Jane Street Group, LLC"] | ||
homepage: "https://github.com/ocaml-ppx/cinaps" | ||
bug-reports: "https://github.com/ocaml-ppx/cinaps/issues" | ||
dev-repo: "git+https://github.com/ocaml-ppx/cinaps.git" | ||
license: "MIT" | ||
build: [ | ||
["dune" "build" "-p" name "-j" jobs] | ||
] | ||
depends: [ | ||
"ocaml" {>= "4.04"} | ||
"dune" {>= "2.0.0"} | ||
"re" {>= "1.8.0"} | ||
"base-unix" | ||
] | ||
synopsis: "Trivial metaprogramming tool" | ||
description: " | ||
Cinaps is a trivial Metaprogramming tool using the OCaml toplevel. It | ||
is based on the same idea as expectation tests. The user write some | ||
OCaml code inside special comments and cinaps make sure that what | ||
follows is what is printed by the OCaml code. | ||
" | ||
x-commit-hash: "86f2f05c4605572022cdb794c5542d220fb14be5" | ||
url { | ||
src: | ||
"https://github.com/ocaml-ppx/cinaps/archive/v0.15.1.tar.gz" | ||
checksum: [ | ||
"sha256=1be18e70f5d8a6b03566c3619b62836a26094fc7208fde46ab7b32ee64116170" | ||
"sha512=ca53a9da8aa71ce7cddf7e24778e9c4d3f3e5784209da85a5a6b2d5af83cd8ad769fbe3009d2757ebf4a25ca39d76af00ebc693b1b01c3b53c8775ea479123a5" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
opam-version: "2.0" | ||
homepage: "https://github.com/pqwy/notty" | ||
dev-repo: "git+https://github.com/pqwy/notty.git" | ||
bug-reports: "https://github.com/pqwy/notty/issues" | ||
doc: "https://pqwy.github.io/notty/doc" | ||
maintainer: "David Kaloper <dk505@cam.ac.uk>" | ||
license: "ISC" | ||
synopsis: "Declaring terminals" | ||
description: | ||
"Notty is a declarative terminal library for OCaml structured around a notion | ||
of composable images. It tries to abstract away the basic terminal programming | ||
model, providing something simpler and more expressive." | ||
|
||
build: [ [ "dune" "subst" ] {dev} | ||
[ "dune" "build" "-p" name "-j" jobs ] ] | ||
depends: [ | ||
"ocaml" {>= "4.08.0"} | ||
"dune" {>= "1.7"} | ||
"cppo" {build & >= "1.1.0"} | ||
"uutf" {>= "1.0.0"} | ||
] | ||
depopts: [ "lwt" ] | ||
conflicts: [ | ||
"lwt" {<"2.6.0"} | ||
] | ||
authors: "David Kaloper <dk505@cam.ac.uk>" | ||
url { | ||
src: | ||
"https://github.com/pqwy/notty/releases/download/v0.2.3/notty-0.2.3.tbz" | ||
checksum: [ | ||
"sha256=74659fb14073db4438989891ab24f24bef81aa497dac16d9a67f9a1c9c200824" | ||
"sha512=6e21d44fe39f3d80884b87635bebae55cb2b931ef74f9184ba4d74cc3e51cb0b3e976c3b6dc61d377288504e8bfabe21acdc1069eacb30df1fbf6686b80f7c6b" | ||
] | ||
} | ||
x-commit-hash: "e035d069370da436f1fc53525c1e16bff3ed687e" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
# | ||
# list packages that are not required by packages in this repo | ||
# | ||
exec opam admin filter --dry-run --resolve=xs-toolstack --resolve upstream-extra-dummy --resolve depext.transition --resolve opam-ed.0.3 --resolve ocaml-base-compiler.4.08.1 --resolve ppx_tools.6.0+4.08.0 --resolve ocaml-system.4.08.1 --or --with-test | ||
|
||
# with-test only looks at test dependencies of the packages listed on the | ||
# cmdline, not everything recursively | ||
# so find out recursive deps of xs-toolstack: we want to run tests for all of | ||
# those (but we don't necessarily need to run the tests of packages pulled in | ||
# only for testing - that is sometimes not all solvable with same versions) | ||
set -euo pipefail | ||
. "$(dirname "$0")/xs-opam-ci.env" | ||
opam admin check --ignore-test-doc | ||
# there is a conflict in ppxlib and sexplib0 version in with-test, ignore its tests for now | ||
RESOLVE=$(opam admin filter --verbose --dry-run --resolve=xs-toolstack | sed -n 2p | grep -v ppxlib) | ||
RESOLVE+=" upstream-extra-dummy xenctrl.dummy opam-depext opam-ed.0.3" | ||
RESOLVE+=" ocaml-base-compiler.${OCAML_VERSION_FULL} ocaml-system.${OCAML_VERSION_FULL}" | ||
exec opam admin filter --dry-run "--resolve=$(echo ${RESOLVE} | tr ' ' ',')" --or --with-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# | ||
# list packages that are not required by packages in this repo | ||
|
||
# with-test only looks at test dependencies of the packages listed on the | ||
# cmdline, not everything recursively | ||
# so find out recursive deps of xs-toolstack: we want to run tests for all of | ||
# those (but we don't necessarily need to run the tests of packages pulled in | ||
# only for testing - that is sometimes not all solvable with same versions) | ||
set -euo pipefail | ||
|
||
# there are conflicts with some of these test dependencies or bring in too many other packages | ||
# next time we upgrade them we should aim to make them testable | ||
# ocaml-system should always be excluded because the system compiler may be quite different from what we use here | ||
NOTEST=ocaml-system\|ppx_cstruct\|ipaddr-sexp\|vhd-format-lwt\|cohttp-async\|ezjsonm\|ppxlib\|mirage-crypto-ec | ||
ALLDEPS=$(opam admin filter --dry-run --resolve=xs-toolstack | sed -n 2p | tr ' ' '\n' |grep -vE ${NOTEST} | tr '\n' ' ') | ||
#opam install --no-depexts --with-test ${ALLDEPS} -y | ||
opam install --with-test ${ALLDEPS} -y |