Skip to content

Commit

Permalink
add pipefail to capture make run exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernie Billing committed Oct 9, 2019
1 parent a219469 commit ad14f07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/templates/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SHELL=/bin/bash

# TODO phonies
IMAGE_TAG := "<%= testName %>"
BASH_SRC := $(shell find . -name "*.sh")
Expand Down Expand Up @@ -58,7 +60,7 @@ logs:
mkdir -p ./logs

run: run-deps logs temp/make-tags/build
docker run \
set -o pipefail; docker run \
-e GREETING_NAME \
$(IMAGE_TAG) 2>&1 | tee ./logs/$(shell date "+%Y.%m.%d-%H.%M.%S").log

Expand Down

0 comments on commit ad14f07

Please sign in to comment.