Skip to content

Commit

Permalink
Output Bikeshed compile errors when using "make remote"
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Apr 14, 2020
1 parent 2f30b1b commit cf86431
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Makefile.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@ SHELL=/bin/bash -o pipefail
.PHONY: local remote deploy review

remote: @@bs@@.bs
curl https://api.csswg.org/bikeshed/ -f -F file=@@@bs@@.bs > @@bs@@.html -F md-Text-Macro="COMMIT-SHA LOCAL COPY"
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
--output @@bs@@.html \
--write-out "%{http_code}" \
--header "Accept: text/plain, text/html" \
-F die-on=warning \
-F md-Text-Macro="COMMIT-SHA LOCAL COPY" \
-F file=@@@bs@@.bs) && \
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
echo ""; cat @@bs@@.html; echo ""; \
rm -f @@bs@@.html; \
exit 22 \
);

local: @@bs@@.bs
bikeshed spec @@bs@@.bs @@bs@@.html --md-Text-Macro="COMMIT-SHA LOCAL COPY"
Expand Down

0 comments on commit cf86431

Please sign in to comment.