diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1b5eccce7..cbc7101ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -144,10 +144,10 @@ test:multinode.sh: - jbuilder build @test/runtest_multinode.sh retry: 1 -test:proto:sandboxing: +test:proto:sandbox: <<: *test_definition script: - - jbuilder build @src/proto/runtest_sandboxing + - jbuilder build @runtest_sandbox ## Publishing (small) docker images with tezos binaries diff --git a/scripts/Dockerfile.build.in b/scripts/Dockerfile.build.in index bfc808fa7..a77abdbb7 100644 --- a/scripts/Dockerfile.build.in +++ b/scripts/Dockerfile.build.in @@ -1,10 +1,6 @@ FROM $base_image -COPY src tezos/src -COPY test tezos/test -COPY scripts tezos/scripts -COPY vendors tezos/vendors -COPY Makefile jbuild .ocp-indent tezos/ +COPY . tezos RUN sudo chown -R opam /home/opam/tezos && \ cd tezos && \ diff --git a/scripts/Dockerfile.build_deps.in b/scripts/Dockerfile.build_deps.in index eff41fa89..08342c124 100644 --- a/scripts/Dockerfile.build_deps.in +++ b/scripts/Dockerfile.build_deps.in @@ -1,7 +1,7 @@ FROM $base_image COPY scripts/install_build_deps.sh scripts/version.sh tezos/scripts/ -COPY tezos.opam tezos/ +COPY tezos-deps.opam tezos/ RUN sudo apk update && \ opam config exec -- ./tezos/scripts/install_build_deps.sh && \ opam install ocp-indent && \ diff --git a/scripts/alphanet_constants.patch b/scripts/alphanet_constants.patch index 86d2059ec..f7388ef7a 100644 --- a/scripts/alphanet_constants.patch +++ b/scripts/alphanet_constants.patch @@ -1,7 +1,7 @@ -diff --git a/src/proto/alpha/constants_repr.ml b/src/proto/alpha/constants_repr.ml +diff --git a/lib_embedded_protocol_alpha/src/constants_repr.ml b/lib_embedded_protocol_alpha/src/constants_repr.ml index 61e79c8a..f91ce282 100644 ---- a/src/proto/alpha/constants_repr.ml -+++ b/src/proto/alpha/constants_repr.ml +--- a/lib_embedded_protocol_alpha/src/constants_repr.ml ++++ b/lib_embedded_protocol_alpha/src/constants_repr.ml @@ -49,15 +49,14 @@ let read_public_key s = Ed25519.Public_key.of_bytes (Bytes.of_string (Hex_encode.hex_decode s)) diff --git a/scripts/install_build_deps.sh b/scripts/install_build_deps.sh index 19a76ca9b..62a492e12 100755 --- a/scripts/install_build_deps.sh +++ b/scripts/install_build_deps.sh @@ -20,10 +20,10 @@ opam pin --yes add --no-action --dev-repo sodium opam pin --yes add --no-action --dev-repo ocp-ocamlres opam pin --yes add --no-action --dev-repo ocplib-json-typed ## Force opam to take account of the new `tezos-deps.opam` -opam pin --yes remove tezos -opam pin --yes add --no-action tezos $src_dir +opam pin --yes remove tezos-deps +opam pin --yes add --no-action tezos-deps $src_dir opam list --installed depext || opam install depext -opam depext tezos +opam depext tezos-deps -opam install tezos --deps-only +opam install tezos-deps --deps-only diff --git a/tezos-deps.opam b/tezos-deps.opam new file mode 100644 index 000000000..b4c7c5182 --- /dev/null +++ b/tezos-deps.opam @@ -0,0 +1,36 @@ +opam-version: "1.2" +version: "dev" +maintainer: "contact@tezos.com" +authors: [ "Tezos devteam" ] +homepage: "https://www.tezos.com/" +bug-reports: "https://gitlab.com/tezos/tezos/issues" +dev-repo: "https://gitlab.com/tezos/tezos.git" +license: "unreleased" +depends: [ + "ocamlfind" { build } + "jbuilder" { build & >= "1.0+beta15" } + "base-bigarray" + "base-threads" + "conf-libev" + "calendar" + "cohttp" { >= "0.21" } + "conduit" + "ezjsonm" { >= "0.5.0" } + "git" + "git-unix" + "irmin" { >= "1.3" } + "irmin-unix" { >= "1.3" } + "lwt" { >= "3.0.0" } + "lwt_ssl" + "menhir" + "mtime" { >= "1.0.0" } + "ocp-ocamlres" { >= "dev" } + "ocplib-endian" + "ocplib-json-typed" + "reactiveData" + "sodium" { >= "0.3.0" } + "magic-mime" + "leveldb" { >= "1.1.2" } + "kaputt" # { test } + "bisect_ppx" # { test } +]