Added new Travis CI tasks to the travis config template

This commit is contained in:
Laurent Goderre 2018-05-15 10:32:44 -04:00
parent 42eae256ca
commit 66f64f16fb
1 changed files with 19 additions and 0 deletions

View File

@ -20,6 +20,17 @@ stages:
jobs:
include:
- stage: Test
env:
- TEST: Editor Config check
language: node_js
node_js:
- lts/*
install:
- npm i -g eclint
script:
- eclint check
- stage: Test
env:
- TEST: Doc Toc Check
@ -30,6 +41,14 @@ jobs:
doctoc --title='## Table of Contents' --github README.md &&
diff -q README.md README.md.tmp
- stage: Test
env:
- TEST: shfmt check
script:
- docker run -it --rm -v "$(pwd)":/sh -w /sh jamesmstone/shfmt -i 2 -l -w -ci .
- git diff --color
- git diff --stat=220 --color --exit-code
- stage: Test
env:
- TEST: Shell Check