1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-23 17:34:13 +03:00
traefik/script/make.sh

36 lines
644 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
export GO111MODULE=on
export GOPROXY=https://proxy.golang.org
# List of bundles to create when no argument is passed
DEFAULT_BUNDLES=(
generate
2019-03-04 18:40:05 +03:00
validate-lint
binary
test-unit
test-integration
)
SCRIPT_DIR="$(cd "$(dirname "${0}")" && pwd -P)"
bundle() {
local bundle="$1"; shift
2022-09-14 16:10:08 +03:00
echo "---> Making bundle: $(basename "${bundle}") (in $SCRIPT_DIR)"
# shellcheck source=/dev/null
2022-09-14 16:10:08 +03:00
source "${SCRIPT_DIR}/${bundle}"
}
if [ $# -lt 1 ]; then
bundles=${DEFAULT_BUNDLES[*]}
else
bundles=${*}
fi
2022-09-14 16:10:08 +03:00
# shellcheck disable=SC2048
for bundle in ${bundles[*]}; do
2022-09-14 16:10:08 +03:00
bundle "${bundle}"
echo
done