File tree Expand file tree Collapse file tree 3 files changed +31
-21
lines changed Expand file tree Collapse file tree 3 files changed +31
-21
lines changed Original file line number Diff line number Diff line change @@ -3,19 +3,29 @@ sudo: required
33services :
44 - docker
55
6- addons :
7- apt :
8- sources :
9- - debian-sid
10- packages :
11- - shellcheck
12-
136script :
14- - shellcheck *.sh
15- - ./test-build.sh $NODE_VERSION
7+ - if [ "true" = "${SHELLCHECK-}" ]; then shellcheck *.sh ; fi
8+ - if [ -n "${NODE_VERSION-}" ]; then ./test-build.sh $NODE_VERSION ; fi
9+ - if [ "true" = "${DOCTOCCHECK-}" ]; then
10+ nvm install node &&
11+ npm i -g doctoc &&
12+ cp README.md README.md.tmp &&
13+ doctoc --title='## Table of Contents' --github README.md &&
14+ diff -q README.md README.md.tmp;
15+ fi
1616
1717env :
18- matrix :
19- - NODE_VERSION : ' 4.8'
20- - NODE_VERSION : ' 6.11'
21- - NODE_VERSION : ' 8.1'
18+ - DOCTOCCHECK : true
19+ - NODE_VERSION : ' 4.8'
20+ - NODE_VERSION : ' 6.11'
21+ - NODE_VERSION : ' 8.1'
22+
23+ matrix :
24+ include :
25+ env : SHELLCHECK=true
26+ addons :
27+ apt :
28+ sources :
29+ - debian-sid
30+ packages :
31+ - shellcheck
Original file line number Diff line number Diff line change 77
88The official Node.js docker image, made with love by the node community.
99
10+ <!-- START doctoc generated TOC please keep comment here to allow auto update -->
11+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1012## Table of Contents
1113
1214 - [ What is Node.js?] ( #what-is-nodejs )
@@ -30,6 +32,8 @@ The official Node.js docker image, made with love by the node community.
3032 - [ Docker Working Group Members] ( #docker-working-group-members )
3133 - [ Docker Working Group Collaborators] ( #docker-working-group-collaborators )
3234
35+ <!-- END doctoc generated TOC please keep comment here to allow auto update -->
36+
3337## What is Node.js?
3438
3539Node.js is a platform built on Chrome's JavaScript runtime for easily building
Original file line number Diff line number Diff line change @@ -34,16 +34,14 @@ for version in "${versions[@]}"; do
3434
3535 if ! docker build -t node:" $tag " " $version " ; then
3636 fatal " Build of $tag failed!"
37- else
38- info " Build of $tag succeeded."
3937 fi
38+ info " Build of $tag succeeded."
4039
4140 OUTPUT=$( docker run --rm -it node:" $tag " node -e " process.stdout.write(process.versions.node)" )
4241 if [ " $OUTPUT " != " $tag " ]; then
4342 fatal " Test of $tag failed!"
44- else
45- info " Test of $tag succeeded."
4643 fi
44+ info " Test of $tag succeeded."
4745
4846 variants=$( echo " $version " /* / | xargs -n1 basename)
4947
@@ -55,16 +53,14 @@ for version in "${versions[@]}"; do
5553
5654 if ! docker build -t node:" $tag -$variant " " $version /$variant " ; then
5755 fatal " Build of $tag -$variant failed!"
58- else
59- info " Build of $tag -$variant succeeded."
6056 fi
57+ info " Build of $tag -$variant succeeded."
6158
6259 OUTPUT=$( docker run --rm -it node:" $tag -$variant " node -e " process.stdout.write(process.versions.node)" )
6360 if [ " $OUTPUT " != " $tag " ]; then
6461 fatal " Test of $tag -$variant failed!"
65- else
66- info " Test of $tag -$variant succeeded."
6762 fi
63+ info " Test of $tag -$variant succeeded."
6864
6965 done
7066
You can’t perform that action at this time.
0 commit comments