https://gitlab.com/tezos/tezos
Raw File
Tip revision: 54cf2be93ff31428bac2335808b6f94a3f044348 authored by Zaynah Dargaye on 21 February 2022, 17:40:16 UTC
Proto: compute at most one stake update per transfer per delegate
Tip revision: 54cf2be
generate_opam_pipeline.sh
#!/usr/bin/env bash

set -eu

script_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")"

#shellcheck disable=SC1090
. "$script_dir"opam-pin.sh

#shellcheck disable=SC2154
PACKAGES=$(echo "$packages" | tr '\n' ' ')

{
cat <<EOF
include: ".gitlab/ci/templates.yml"

stages:
  - packaging

EOF
} > opam-ci.yml

for PKG in $PACKAGES; do
{
  cat <<EOF

opam:$PKG:
  extends: .opam_template
  variables:
    package: ${PKG}
EOF
} >> opam-ci.yml
done
back to top