Revision bfe34963151bcf8add8c377a1d8ba0632ab464bb authored by Marge Bot on 09 September 2022, 16:18:52 UTC, committed by Marge Bot on 09 September 2022, 16:18:52 UTC
Co-authored-by: Thomas Letan <lthms@nomadic-labs.com> Approved-by: Ole Krüger <ole.kruger@trili.tech> Approved-by: Emma Turner <1623821-emturner@users.noreply.gitlab.com> Approved-by: Pierrick Couderc <pierrick.couderc@nomadic-labs.com> See merge request https://gitlab.com/tezos/tezos/-/merge_requests/6276
install-opam.sh
#!/usr/bin/env bash
# shellcheck source=/dev/null
# for not checking the existence of sourced file $HOME/.cargo/env
# shellcheck disable=SC2154
# for undefined variable in: opam switch create for_tezos $ocaml_version
# shellcheck disable=SC2086
# for omitting quotes in: opam switch create for_tezos $ocaml_version
# shellcheck disable=SC2046
# for omitting quotes in: eval $(opam env)
set -e
set -x
sudo apt-get update
sudo apt-get install wget
export OPAMYES=true
export OPAMSOLVERTIMEOUT=1200
# [make sure opam has the latest repo]
# Note that in the docker image used for the test, the default repo is a local
# copy dating from when the image was generated.
opam repository set-url default https://opam.ocaml.org
opam update
# [install ocaml compiler]
wget -O latest-release:version.sh https://gitlab.com/tezos/tezos/raw/latest-release/scripts/version.sh
source latest-release:version.sh
opam switch create for_tezos $ocaml_version
eval $(opam env)
# [get system dependencies]
# depext handling is done directly by opam 2.1 and later
opam depext tezos
# [install tezos]
opam install tezos
# [test executables]
tezos-client --version
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...