Populate errorlevel from the top level Makefile#69
Conversation
e8862ff to
e4acbd5
Compare
|
Failed for some broken builds |
| @@ -1,20 +1,26 @@ | |||
| TARGETS=go1.10 go1.11 go1.12 go1.13 go1.14 | |||
|
|
|||
| build: status=".status.build" | |||
There was a problem hiding this comment.
I think you only need .SHELLFLAGS = -ec this will stop make on the first failure
There was a problem hiding this comment.
.ONESHELL : also can work
There was a problem hiding this comment.
I think fail fast might not be ideal for this particular use case, since the build takes a while, I'd prefer to run and then evaluate the outcome to provide as many details as possible, what do you think?
There was a problem hiding this comment.
you know what happens when you allow keeping things broken 😄
There was a problem hiding this comment.
error should be reported and fail the build always but at the end, so that's what I meant
|
I'll merge this PR since it does nothing but validating the make calls did not fail and if so failed the build at the end. |
What
Populate the error level in the foreach, for such I use a file flag with the errorlevel since I could not find the way to use dynamic variables within the make target.
Why
As far as I see the CI uses the toplevel Makefile:
Those goals call the other makefiles which already contain the
exit 1if something bad happened (golang-crossbuild/go1.14/Makefile.debian7
Line 8 in 7fe9c7c
For instance:
But the build was successful
Tests
sed -i.back 's#TARGETS=.*#TARGETS=go1.10#g' Makefilesed -i.back 's#apt-get#ap-get#g' go1.10/base/Dockerfile.tmplmake buildand the output should look like: