# HG changeset patch # User Malcolm Matalka # Date 1555179743 -7200 # Sat Apr 13 20:22:23 2019 +0200 # Node ID 23708bccb6d445e7b57e4ee5451b63c590df5f7e # Parent c23be0cafc1594224af72f5278653d9e0ef9216e ADD Builds file diff --git a/.build.yml b/.build.yml new file mode 100644 --- /dev/null +++ b/.build.yml @@ -0,0 +1,35 @@ +image: freebsd/latest +packages: + - gmake + - ocaml-opam + - pkgconf +secrets: + - c662a15d-dfb4-43c9-8057-1a1e5fbcb76e + - 8b37ab4f-8ff6-4b79-b815-806a1768d44b +sources: + - hg+ssh://hg@hg.sr.ht/~mmatalka/snabela +tasks: + - opam-init: | + opam init -a + - build-compiler: | + eval $(opam env) + opam switch create 4.06.1 + - setup-environment: | + eval $(opam env) + cd snabela + opam repository add opam-snabela opam + opam pin add -y sedlex 1.99.3 + opam install -y hll pds + hll generate --opam-dir ./opam --tag 99999.0 --test-deps-as-regular-deps + opam update opam-snabela + opam info snabela + opam install -j4 -y --strict --deps-only snabela + - test: | + eval $(opam env) + cd snabela + set +e + time env OCAMLRUNPARAM=b gmake -k test + test_ret=$? + set -x + find . -name '*.tap' -exec cat '{}' \; + exit $test_ret diff --git a/hll.conf b/hll.conf --- a/hll.conf +++ b/hll.conf @@ -13,7 +13,5 @@ build_deps = ["merlin-of-pds"] -available = "ocaml-version >= \"4.03\"" - [deps_map] ppx_deriving = ["ppx_deriving.show", "ppx_deriving.eq"] diff --git a/opam/packages/hll.3.13/opam b/opam/packages/hll.3.13/opam new file mode 100644 --- /dev/null +++ b/opam/packages/hll.3.13/opam @@ -0,0 +1,42 @@ +opam-version: "2.0" +maintainer: "orbitz@gmail.com" +build: [ + [make "-j%{jobs}%"] + [make "-j%{jobs}%" "test"] {with-test} +] + +install: [ + [make "PREFIX=%{prefix}%" "install"] +] + +remove: [ + [make "PREFIX=%{prefix}%" "remove"] +] + +depends: [ + "cmdliner" + "containers" + "ocamlfind" + "pds" { build & (>= "5" & < "6") } + "process" + "toml" { >= "4" } +] + +authors: [ + "dklee@dklee.org" + "orbitz@gmail.com" +] + +description: """ +Create opam package files from a repository +""" + +homepage: "https://bitbucket.org/mimirops/hll" + +url { + src: "https://bitbucket.org/mimirops/hll/get/3.13.tar.gz" + checksum: "b52c88442120060178cb892468e10283" +} +bug-reports: "https://bitbucket.org/mimirops/hll/issues" +dev-repo: "git@bitbucket.org:mimirops/hll.git" + diff --git a/opam/packages/oth/oth.2.11/opam b/opam/packages/oth/oth.2.11/opam new file mode 100644 --- /dev/null +++ b/opam/packages/oth/oth.2.11/opam @@ -0,0 +1,43 @@ +opam-version: "2.0" +maintainer: "orbitz@gmail.com" +build: [ + [make "-j%{jobs}%"] + [make "-j%{jobs}%" "test"] {with-test} +] + +install: [ + [make "PREFIX=%{prefix}%" "install"] +] + +remove: [ + [make "PREFIX=%{prefix}%" "remove"] +] + +depends: [ + "containers" + "duration" + "merlin-of-pds" + "ocamlfind" + "pds" { build & (>= "5" & < "6") } + "revops" +] + +authors: [ + "dklee@dklee.org" + "orbitz@gmail.com" +] + +description: """ +Ocaml Test Harness - Simple library for running tests +""" + +homepage: "https://bitbucket.org/mimirops/oth" + +url { + src: "https://bitbucket.org/mimirops/oth/get/2.11.tar.gz" + checksum: "0fc90764a1660717df9e53f50037b783" +} +bug-reports: "https://bitbucket.org/mimirops/oth/issues" +dev-repo: "git@bitbucket.org:mimirops/oth.git" + + diff --git a/opam/packages/pds/pds.5.33/opam b/opam/packages/pds/pds.5.33/opam new file mode 100644 --- /dev/null +++ b/opam/packages/pds/pds.5.33/opam @@ -0,0 +1,45 @@ +opam-version: "2.0" +maintainer: "orbitz@gmail.com" +build: [ + [make "-j%{jobs}%"] + [make "-j%{jobs}%" "test"] {with-test} +] + +install: [ + [make "PREFIX=%{prefix}%" "install"] +] + +remove: [ + [make "PREFIX=%{prefix}%" "remove"] +] + +depends: [ + "cmdliner" + "containers" + "crunch" + "ocaml" { >= "4.02" } + "ocamlfind" + "ppx_deriving" + "process" + "sedlex" + "toml" +] + +authors: [ + "dklee@dklee.org" + "orbitz@gmail.com" +] + +description: """ +A tool to build Makefiles for Ocaml projects +""" + +homepage: "https://bitbucket.org/mimirops/pds" + +url { + src: "http://acsl-pkgs.s3.amazonaws.com/pds-5.33.tar.gz" + checksum: "d2508c19ae2c007b024699e380da23e6" +} +bug-reports: "https://bitbucket.org/mimirops/pds/issues" +dev-repo: "git@bitbucket.org:mimirops/pds.git" + diff --git a/opam/repo b/opam/repo new file mode 100644 --- /dev/null +++ b/opam/repo @@ -0,0 +1,1 @@ +opam-version: "2.0"