2018-03-17 18:26:18 +05:30
|
|
|
# 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:
|
|
|
|
- docker:dind
|
|
|
|
|
|
|
|
variables:
|
|
|
|
DOCKER_HOST: "tcp://docker:2375"
|
|
|
|
KITCHEN_LOCAL_YAML: ".kitchen.dokken.yml"
|
|
|
|
|
|
|
|
stages:
|
2019-07-31 22:56:46 +05:30
|
|
|
- build
|
2018-03-17 18:26:18 +05:30
|
|
|
- lint
|
2019-07-31 22:56:46 +05:30
|
|
|
- test
|
2018-03-17 18:26:18 +05:30
|
|
|
- functional
|
2019-07-31 22:56:46 +05:30
|
|
|
- deploy
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
cookstyle:
|
|
|
|
stage: lint
|
|
|
|
script:
|
2019-09-04 21:01:54 +05:30
|
|
|
- chef exec cookstyle .
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
chefspec:
|
2019-07-31 22:56:46 +05:30
|
|
|
stage: test
|
2018-03-17 18:26:18 +05:30
|
|
|
script:
|
2019-09-04 21:01:54 +05:30
|
|
|
- chef exec rspec spec
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
# Set up your test matrix here. Example:
|
2019-09-04 21:01:54 +05:30
|
|
|
# verify-centos-6:
|
|
|
|
# stage: functional
|
|
|
|
# before_script:
|
|
|
|
# - apt-get update
|
|
|
|
# - apt-get -y install rsync
|
|
|
|
# script:
|
|
|
|
# - kitchen verify default-centos-6 --destroy=always
|
2019-07-07 11:18:12 +05:30
|
|
|
#
|
2019-09-04 21:01:54 +05:30
|
|
|
# verify-centos-7:
|
|
|
|
# stage: functional
|
|
|
|
# before_script:
|
|
|
|
# - apt-get update
|
|
|
|
# - apt-get -y install rsync
|
|
|
|
# script:
|
|
|
|
# - kitchen verify default-centos-7 --destroy=always
|