From 886e02d12bb542260482d489100841e7b1ac2d9a Mon Sep 17 00:00:00 2001 From: Paolo Cuffiani Date: Thu, 21 Mar 2019 12:11:45 +0100 Subject: [PATCH] =?UTF-8?q?[minor]=20chore:=20add=20`make=20test`=20recipe?= =?UTF-8?q?,=20use=20`make=20test`=C2=A0in=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 4 ++-- Makefile | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9a4390b..e26c522 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,12 @@ sudo: false -language: python +language: 'python' install: - 'pip install awscli' script: - - 'for template in $(ls *.yml); do aws cloudformation validate-template --template-body file://$template; done' + - 'make test' before_deploy: - 'mkdir -p templates' diff --git a/Makefile b/Makefile index 2c9ce93..adaa0e6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,9 @@ -.PHONY: list-instance-types list-latest-amis +.PHONY: list-instance-types list-latest-amis test + +test: + @for template in $$(ls *.yml); do \ + aws cloudformation validate-template --template-body file://$$template; \ + done list-instance-types: @instance_types=$$( \