Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Sep 23, 2017
1 parent 8c28f8d commit 28a48ac
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ install: |
brew update >/dev/null
brew install zsh
fi
script:
- ./script/format_check
- ./script/test
script: make ci
notifications:
email: false
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
fmt:
@shfmt --version
@find . -maxdepth 3 -name '*.sh' | while read -r src; do shfmt -w -p "$$src"; done
@find . -maxdepth 3 -name '*.zsh' | while read -r src; do shfmt -w "$$src"; done;

check:
@curl -sL https://git.io/shcheck | bash -f -s -- \
--ignore 'script/test' \
--ignore 'vim/vim.symlink/**/*' \
--ignore 'zsh/config.zsh' \
--ignore 'zsh/completion.zsh' \
--ignore 'zsh/prompt.zsh' \
--ignore 'zsh/fpath.zsh' \
--ignore 'atom.symlink/packages/**/*' \
--ignore 'vim/vim.symlink/bundle/**/*' \
--ignore 'docker/completion.zsh'

ci: check
./script/test
7 changes: 0 additions & 7 deletions script/format

This file was deleted.

14 changes: 0 additions & 14 deletions script/format_check

This file was deleted.

0 comments on commit 28a48ac

Please sign in to comment.