Skip to content

Commit

Permalink
[Make] Add check, yaml_check, travis_check args.
Browse files Browse the repository at this point in the history
  • Loading branch information
chusiang committed Jul 24, 2019
1 parent 095dff7 commit 00776e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Blog: http://note.drx.tw
# Filename: Makefile
# Modified: 2018-03-19 00:23
# Modified: 2019-07-25 00:12
# Description: Install this with Make.
# Reference: https://github.com/chusiang/vimrc/blob/master/Makefile
# =============================================================================

.PHONY: all main backup install update clean clean-backup-file
.PHONY: all main backup install update clean clean-backup-file check \
yaml_check travis_check

TIMESTAMP=`date "+%Y-%m-%d-%H:%M:%S"`
FILE_VIMRC=${HOME}/.vimrc
Expand Down Expand Up @@ -68,3 +69,11 @@ clean-backup-file:
rm -rf ${HOME}/.vim_bak*

@echo '==> Done.'

check: yaml_check travis_check

yaml_check:
find -name "*.yml" -type f -exec yamllint {} \;

travis_check:
travis lint .travis.yml
1 change: 0 additions & 1 deletion _gvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
" Filename: _gvimrc
" Modified: 2016-10-06 19:00
" Description: GVim config.
" Reference:
" ===========================================================

if filereadable("${HOME}/.vimrc")
Expand Down

0 comments on commit 00776e3

Please sign in to comment.