Skip to content

Commit

Permalink
Meta: update repository files
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Apr 23, 2020
1 parent d51aaf2 commit 46e293b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
9 changes: 6 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ root = true
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_size = 1
indent_size = 2
indent_style = space
trim_trailing_whitespace = true
max_line_length = 100

[Makefile]
indent_style = tab

[.travis.yml]
indent_size = 2
[*.bs]
indent_size = 1

[*.py]
indent_size = 4
14 changes: 7 additions & 7 deletions .pr-preview.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"src_file": "quirks.bs",
"type": "bikeshed",
"params": {
"force": 1,
"md-status": "LS-PR",
"md-Text-Macro": "PR-NUMBER {{ pull_request.number }}"
}
"src_file": "quirks.bs",
"type": "bikeshed",
"params": {
"force": 1,
"md-status": "LS-PR",
"md-Text-Macro": "PR-NUMBER {{ pull_request.number }}"
}
}
15 changes: 13 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@ SHELL=/bin/bash -o pipefail
.PHONY: local remote deploy review

remote: quirks.bs
curl https://api.csswg.org/bikeshed/ -f -F file=@quirks.bs > quirks.html -F md-Text-Macro="SNAPSHOT-LINK LOCAL COPY"
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
--output quirks.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=@quirks.bs) && \
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
echo ""; cat quirks.html; echo ""; \
rm -f quirks.html; \
exit 22 \
);

local: quirks.bs
bikeshed spec quirks.bs quirks.html --md-Text-Macro="SNAPSHOT-LINK LOCAL COPY"
bikeshed spec quirks.bs quirks.html --md-Text-Macro="COMMIT-SHA LOCAL COPY"

deploy: quirks.bs
curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh
Expand Down

0 comments on commit 46e293b

Please sign in to comment.