WIP: Add testing Makefile and matrix definitions

This commit is contained in:
Michael Russell 2018-06-13 09:34:28 +02:00
parent 6d82cf3142
commit c1b83a892f
No known key found for this signature in database
GPG key ID: A90C1696496085FE
5 changed files with 117 additions and 32 deletions

32
Makefile Normal file
View file

@ -0,0 +1,32 @@
default: build
SHELL:=/bin/bash -eux
VERSION := 6.x
PATTERN := xpack-standard-ubuntu-1604
.PHONY: converge cerify test login destroy list
setup:
bundle install
docker ps
converge:
bundle exec kitchen converge $(PATTERN)
verify:
bundle exec kitchen verify $(PATTERN)
test:
bundle exec kitchen test $(PATTERN) --destroy=always
login:
bundle exec kitchen login $(PATTERN)
destroy:
bundle exec kitchen destroy $(PATTERN)
destroy-all:
bundle exec kitchen destroy
list:
bundle exec kitchen list