File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
SHELL =/bin/bash
2
2
3
3
bs_installed := $(shell command -v bikeshed 2> /dev/null)
4
+ node_installed := $(shell command -v node 2> /dev/null)
4
5
npm_installed := $(shell command -v npm 2> /dev/null)
5
6
pp_webidl_installed := $(shell npm ls webidl-grammar-post-processor --parseable --depth=0 2> /dev/null)
6
7
@@ -10,12 +11,15 @@ index.html : index.bs
10
11
ifdef bs_installed
11
12
bikeshed spec --die-on=warning index.bs
12
13
else
14
+ ifndef TRAVIS
13
15
@echo Can\'t find a local version of Bikeshed. To install it, visit:
14
16
@echo
15
17
@echo https://github.com/tabatkins/bikeshed/blob/master/docs/install.md
16
18
@echo
17
19
@echo Trying to build the spec using the online API at: https://api.csswg.org/bikeshed/
18
20
@echo This will fail if you are not connected to the network.
21
+ @echo
22
+ endif
19
23
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
20
24
--output index.html \
21
25
--write-out "%{http_code}" \
28
32
exit 22 \
29
33
);
30
34
endif
35
+ ifdef node_installed
36
+ node ./check-grammar.js index.html
37
+ else ifdef TRAVIS
38
+ exit 1
39
+ else
40
+ @echo You need node for grammer checking.
41
+ endif
31
42
ifdef pp_webidl_installed
32
43
npm run pp-webidl -- --input index.html
33
44
else ifdef npm_installed
34
45
npm install
35
46
npm run pp-webidl -- --input index.html
47
+ else ifdef TRAVIS
48
+ exit 1
36
49
else
37
50
@echo You need node.js and npm to apply post-processing. To install it, visit:
38
51
@echo
Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ SOURCE_BRANCH="master"
5
5
TARGET_BRANCH=" gh-pages"
6
6
7
7
function doCompile {
8
- curl https://api.csswg.org/bikeshed/ -f -F
[email protected] > out/index.html
9
- node ./check-grammar.js ./out/index.html
10
- npm run pp-webidl -- --input ./out/index.html
8
+ make
9
+ mv index.html ./out/index.html
11
10
}
12
11
13
12
# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
You can’t perform that action at this time.
0 commit comments