Skip to content

Commit

Permalink
Add make syntax_check and link_check #7
Browse files Browse the repository at this point in the history
  • Loading branch information
chusiang committed Apr 16, 2018
1 parent 5ef51e1 commit a688eb1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
.PHONY: main boot run clean
.PHONY: main syntax_check lint_check boot run clean

main: run
main: syntax_check lint_check

init:
if [ ! -d "ansible-retry" ]; then mkdir "ansible-retry"; fi
ansible-galaxy install -f -p roles -r requirements.yml

syntax_check:
ansible-playbook --syntax-check setup*.yml

lint_check:
ansible-lint --exclude=roles setup*.yml

boot:
vagrant up

Expand Down

0 comments on commit a688eb1

Please sign in to comment.