Skip to content

Commit 0c9026f

Browse files
committed
Site build: move build/test commands from travis to make
Having the commands in .travis.yml is ok when there's only a couple simple commands, but as the number and complexity of the commands increases, it's nice to have a way to quickly run them from a local shell. This commit moves the existing commands as-is to the 'build' and 'test' make targets, which are themselves both run by the default 'all' target. An additional target of 'preview' is added with a variant on the build command for local previews.
1 parent cc71ae2 commit 0c9026f

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ cache: bundler
1515

1616
## Build all possible jekyll pages for use with link checking.
1717
script:
18-
- bundle exec jekyll build --future --drafts --unpublished
19-
- bundle exec htmlproof --disable-external --url-ignore '/^\/bin/.*/' ./_site
20-
- contrib/qa/test-binary-availability.sh && echo "SUCCESS checking URLs for binaries"
18+
- make all
2119

2220
env:
2321
global:

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
all: build test
2+
3+
preview:
4+
bundle exec jekyll clean
5+
bundle exec jekyll serve --future --drafts --unpublished --incremental
6+
7+
build:
8+
bundle exec jekyll clean
9+
bundle exec jekyll build --future --drafts --unpublished
10+
11+
test:
12+
bundle exec htmlproof --disable-external --url-ignore '/^\/bin/.*/' ./_site
13+
contrib/qa/test-binary-availability.sh && echo "SUCCESS checking URLs for binaries"

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ exclude:
6464
- vendor # Travis CI creates a vendor/ dir with files we shouldn't render
6565
- assets/images/assets.yml
6666
- contrib
67+
- Makefile
6768

6869
defaults:
6970
-

0 commit comments

Comments
 (0)