Merge pull request #660 from rubenvereecken/travis-tldr-lint

Travis executes tldr-lint to verify our style conventions.
waldyrious/alt-syntax
Ruben Vereecken 2016-01-13 16:11:54 +01:00
commit 19d33db380
3 changed files with 14 additions and 0 deletions

3
.gitignore vendored
View File

@ -8,3 +8,6 @@
# bundler specific # bundler specific
.gem .gem
.bundle .bundle
# npm specific
node_modules

View File

@ -7,6 +7,13 @@ language: ruby
rvm: rvm:
- 2.2.2 - 2.2.2
install:
- bundle
- . $HOME/.nvm/nvm.sh
- nvm install 5.0
- nvm use 5.0
- npm install tldr-lint
gemfile: gemfile:
- Gemfile - Gemfile

View File

@ -19,6 +19,8 @@ prerequisites:
@echo "TL;DR:" @echo "TL;DR:"
@echo "1. Install Ruby suitable for your system" @echo "1. Install Ruby suitable for your system"
@echo "2. Run 'gem install bundler'" @echo "2. Run 'gem install bundler'"
@echo "3. Install node 5.x"
@echo "4. Install npm"
@echo @echo
hooks: hooks:
@ -28,9 +30,11 @@ hooks:
deps: deps:
@bundle @bundle
@npm install tldr-lint
@echo "OK" @echo "OK"
lint: lint:
@bundle exec mdl --style ./scripts/markdown-style.rb pages @bundle exec mdl --style ./scripts/markdown-style.rb pages
@`pwd`/node_modules/.bin/tldr-lint ./pages
.PHONY: default index setup prerequisites hooks deps lint .PHONY: default index setup prerequisites hooks deps lint