mirror of https://github.com/CrimsonTome/tldr.git
Merge pull request #660 from rubenvereecken/travis-tldr-lint
Travis executes tldr-lint to verify our style conventions.waldyrious/alt-syntax
commit
19d33db380
|
@ -8,3 +8,6 @@
|
||||||
# bundler specific
|
# bundler specific
|
||||||
.gem
|
.gem
|
||||||
.bundle
|
.bundle
|
||||||
|
|
||||||
|
# npm specific
|
||||||
|
node_modules
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue