From 5f968a6630d6277010ed45cceff0781d23718351 Mon Sep 17 00:00:00 2001 From: Igor Shubovych Date: Sun, 6 Dec 2015 18:36:44 +0200 Subject: [PATCH] Optimize make lint task --- .travis.yml | 2 +- Makefile | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9b41005df..d5387571b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ gemfile: - Gemfile script: -- make check +- make lint after_success: - bash scripts/build.sh diff --git a/Makefile b/Makefile index a778389c2..ae83325c3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -default: check +default: lint all: setup index @@ -17,13 +17,10 @@ deps: @bundle @echo "OK" -check: - @bundle exec mdl --style ./scripts/markdown-style.rb pages - lint: - @GEM_PATH=.gem find pages -exec mdl {} --style ./scripts/markdown-style.rb 1>&2 \; + @bundle exec mdl --style ./scripts/markdown-style.rb pages lint-changed: @./scripts/lint-changed.sh -.PHONY: index setup hooks deps lint lint-changed +.PHONY: default index setup hooks deps lint lint-changed