github.com/docker/libcompose@v0.4.1-0.20210616120443-2a046c0bdbf2/hack/make.sh (about) 1 #!/usr/bin/env bash 2 set -e 3 4 export GO111MODULE=on 5 export LIBCOMPOSE_PKG='github.com/docker/libcompose' 6 7 # List of bundles to create when no argument is passed 8 DEFAULT_BUNDLES=( 9 validate-gofmt 10 validate-dco 11 validate-git-marks 12 validate-lint 13 validate-vet 14 binary 15 16 test-unit 17 test-integration 18 test-acceptance 19 20 cross-binary 21 ) 22 bundle() { 23 local bundle="$1"; shift 24 echo "---> Making bundle: $(basename "$bundle") (in $DEST)" 25 source "hack/$bundle" "$@" 26 } 27 28 if [ $# -lt 1 ]; then 29 bundles=(${DEFAULT_BUNDLES[@]}) 30 else 31 bundles=($@) 32 fi 33 for bundle in ${bundles[@]}; do 34 export DEST=. 35 ABS_DEST="$(cd "$DEST" && pwd -P)" 36 bundle "$bundle" 37 echo 38 done