1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 12:00:08 +02:00
OpenSTF/buildpack/bin/compile
2014-07-30 17:49:10 +09:00

17 lines
448 B
Bash
Executable file

#!/usr/bin/env bash
set -e # fail fast
set -o pipefail # don't ignore exit codes when piping output
# set -x # enable debugging
bp_dir=$(cd $(dirname $0); cd ..; pwd)
# Load some convenience functions like status()
source $bp_dir/bin/common.sh
for pack in node bower gulp; do
if name=$($bp_dir/buildpacks/$pack/bin/detect "$@"); then
status "Detected ${name}"
$bp_dir/buildpacks/$pack/bin/compile "$@"
fi
done