Skip to content

Commit

Permalink
Meta: update repository files
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored May 13, 2020
1 parent a579d74 commit 48cfbaf
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": "infra.bs",
"type": "bikeshed",
"params": {
"force": 1,
"md-status": "LS-PR",
"md-Text-Macro": "PR-NUMBER {{ pull_request.number }}"
}
"src_file": "infra.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: infra.bs
curl https://api.csswg.org/bikeshed/ -f -F [email protected] > infra.html -F md-Text-Macro="SNAPSHOT-LINK LOCAL COPY"
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
--output infra.html \
--write-out "%{http_code}" \
--header "Accept: text/plain, text/html" \
-F die-on=warning \
-F md-Text-Macro="COMMIT-SHA LOCAL COPY" \
-F [email protected]) && \
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
echo ""; cat infra.html; echo ""; \
rm -f infra.html; \
exit 22 \
);

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

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

0 comments on commit 48cfbaf

Please sign in to comment.