mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-25 10:47:17 +03:00
Merge pull request #660 from rubenvereecken/travis-tldr-lint
Travis executes tldr-lint to verify our style conventions.
This commit is contained in:
commit
19d33db380
3
.gitignore
vendored
3
.gitignore
vendored
@ -8,3 +8,6 @@
|
||||
# bundler specific
|
||||
.gem
|
||||
.bundle
|
||||
|
||||
# npm specific
|
||||
node_modules
|
||||
|
@ -7,6 +7,13 @@ language: ruby
|
||||
rvm:
|
||||
- 2.2.2
|
||||
|
||||
install:
|
||||
- bundle
|
||||
- . $HOME/.nvm/nvm.sh
|
||||
- nvm install 5.0
|
||||
- nvm use 5.0
|
||||
- npm install tldr-lint
|
||||
|
||||
gemfile:
|
||||
- Gemfile
|
||||
|
||||
|
4
Makefile
4
Makefile
@ -19,6 +19,8 @@ prerequisites:
|
||||
@echo "TL;DR:"
|
||||
@echo "1. Install Ruby suitable for your system"
|
||||
@echo "2. Run 'gem install bundler'"
|
||||
@echo "3. Install node 5.x"
|
||||
@echo "4. Install npm"
|
||||
@echo
|
||||
|
||||
hooks:
|
||||
@ -28,9 +30,11 @@ hooks:
|
||||
|
||||
deps:
|
||||
@bundle
|
||||
@npm install tldr-lint
|
||||
@echo "OK"
|
||||
|
||||
lint:
|
||||
@bundle exec mdl --style ./scripts/markdown-style.rb pages
|
||||
@`pwd`/node_modules/.bin/tldr-lint ./pages
|
||||
|
||||
.PHONY: default index setup prerequisites hooks deps lint
|
||||
|
Loading…
Reference in New Issue
Block a user