2017-12-12 23:41:28 -05:00
|
|
|
# This file uses Test Kitchen with the kitchen-dokken driver to
|
|
|
|
# perform functional testing. Doing so requires that your runner be a
|
|
|
|
# Docker runner configured for privileged mode. Please see
|
|
|
|
# https://docs.gitlab.com/runner/executors/docker.html#use-docker-in-docker-with-privileged-mode
|
|
|
|
# for help configuring your runner properly, or, if you want to switch
|
|
|
|
# to a different driver, see http://kitchen.ci/docs/drivers
|
|
|
|
|
|
|
|
image: "chef/chefdk"
|
|
|
|
services:
|
2018-05-09 07:06:41 -04:00
|
|
|
- docker:dind
|
2017-12-12 23:41:28 -05:00
|
|
|
|
|
|
|
variables:
|
|
|
|
DOCKER_HOST: "tcp://docker:2375"
|
|
|
|
KITCHEN_LOCAL_YAML: ".kitchen.dokken.yml"
|
|
|
|
|
|
|
|
stages:
|
2019-04-05 06:18:10 -04:00
|
|
|
- build
|
2017-12-12 23:41:28 -05:00
|
|
|
- lint
|
2019-04-05 06:18:10 -04:00
|
|
|
- test
|
2017-12-12 23:41:28 -05:00
|
|
|
- functional
|
2019-04-05 06:18:10 -04:00
|
|
|
- deploy
|
2017-12-12 23:41:28 -05:00
|
|
|
|
|
|
|
foodcritic:
|
|
|
|
stage: lint
|
|
|
|
script:
|
2019-06-05 12:31:35 -04:00
|
|
|
- chef exec foodcritic .
|
2017-12-12 23:41:28 -05:00
|
|
|
|
|
|
|
cookstyle:
|
|
|
|
stage: lint
|
|
|
|
script:
|
2019-06-05 12:31:35 -04:00
|
|
|
- chef exec cookstyle .
|
2017-12-12 23:41:28 -05:00
|
|
|
|
|
|
|
chefspec:
|
2019-04-05 06:18:10 -04:00
|
|
|
stage: test
|
2017-12-12 23:41:28 -05:00
|
|
|
script:
|
2019-06-05 12:31:35 -04:00
|
|
|
- chef exec rspec spec
|
2017-12-12 23:41:28 -05:00
|
|
|
|
|
|
|
# Set up your test matrix here. Example:
|
2019-06-05 12:31:35 -04:00
|
|
|
# verify-centos-6:
|
|
|
|
# stage: functional
|
|
|
|
# before_script:
|
|
|
|
# - apt-get update
|
|
|
|
# - apt-get -y install rsync
|
|
|
|
# script:
|
|
|
|
# - kitchen verify default-centos-6 --destroy=always
|
2019-03-07 08:57:16 -05:00
|
|
|
#
|
2019-06-05 12:31:35 -04:00
|
|
|
# verify-centos-7:
|
|
|
|
# stage: functional
|
|
|
|
# before_script:
|
|
|
|
# - apt-get update
|
|
|
|
# - apt-get -y install rsync
|
|
|
|
# script:
|
|
|
|
# - kitchen verify default-centos-7 --destroy=always
|