https://gitlab.com/tezos/tezos
Raw File
Tip revision: dc0d49a64c8788311aee0f050781ddc137c1648c authored by Alain Mebsout on 27 April 2023, 08:13:23 UTC
SCORU/Node: CLI argument for irmin cache size
Tip revision: dc0d49a
build_full_unreleased.sh
#!/bin/sh
set -eu

if [ -z "${build_deps_image_name}" ]; then echo "build_deps_image_name is unset" && exit 3; fi
if [ -z "${build_deps_image_version}" ]; then echo "build_deps_image_version is unset" && exit 3; fi

# We remove protocols not needed for tests in order to speed up the CI.
old_protocol_store=$(mktemp -d)
./scripts/remove-old-protocols.sh "$old_protocol_store"
. ./scripts/version.sh

# 1. Some basic, fast sanity checks
if [ "${build_deps_image_version}" != "${opam_repository_tag}" ] ; then
    echo "Inconsistent dependencies hash between 'scripts/version.sh' and '.gitlab/ci/templates.yml'." ;
    echo "${build_deps_image_version} != ${opam_repository_tag}" ;
    exit 1 ;
fi

diff poetry.lock /home/tezos/poetry.lock
diff pyproject.toml /home/tezos/pyproject.toml

# 2. Actually build
make

# 3. Also build the tps evaluation tool which is not part of the default build,
#    and the tezt main entrypoint for integration tests.
#    NOTE: Making one call to `dune build` instead of two saves a lot
#    of times `dune` would otherwise need to reconstruct its rules. Do
#    not split this invocation into two.
#    NOTE: We add $COVERAGE_OPTIONS to all dune build commands to enable reuse of
#    build artifacts.
# shellcheck disable=SC2086
dune build ${COVERAGE_OPTIONS} src/bin_tps_evaluation tezt/tests/main.exe

# 4. clean-up caches before uploading the cache
opam clean
back to top