diff --git a/Makefile b/Makefile index 3e36a4eb4..1b4741ed9 100644 --- a/Makefile +++ b/Makefile @@ -19,13 +19,14 @@ run: @echo "Running buildpack using: STACK=$(STACK) FIXTURE=$(FIXTURE)" @docker run --rm -it -v $(PWD):/src:ro --tmpfs /app -e "HOME=/app" -e "STACK=$(STACK)" "$(STACK_IMAGE_TAG)" \ bash -eo pipefail -c '\ - mkdir /tmp/buildpack /tmp/build /tmp/cache /tmp/env \ - && cp -r /src/{bin,lib,requirements,vendor} /tmp/buildpack \ - && cp -rT /src/$(FIXTURE) /tmp/build \ - && cd /tmp/buildpack \ - && echo -e "\n~ Detect:" && bash ./bin/detect /tmp/build /tmp/cache /tmp/env \ - && echo -e "\n~ Compile:" && { ./bin/compile /tmp/build /tmp/cache /tmp/env || true; } \ - && echo -e "\n~ Report:" && ./bin/report /tmp/build /tmp/cache /tmp/env \ + mkdir /tmp/buildpack /tmp/build /tmp/cache /tmp/env; \ + cp -r /src/{bin,lib,requirements,vendor} /tmp/buildpack; \ + cp -rT /src/$(FIXTURE) /tmp/build; \ + cd /tmp/buildpack; \ + echo -e "\n~ Detect:" && ./bin/detect /tmp/build; \ + echo -e "\n~ Compile:" && { ./bin/compile /tmp/build /tmp/cache /tmp/env || SKIP_RELEASE=1; }; \ + echo -e "\n~ Report:" && ./bin/report /tmp/build /tmp/cache /tmp/env; \ + [[ -n "$${SKIP_RELEASE}" ]] || { echo -e "\n~ Release:" && ./bin/release /tmp/build && echo -e "\nBuild successful!"; }; \ ' @echo