gitlab-org--gitlab-foss/lib/gitlab/ci/templates/Chef.gitlab-ci.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.6 KiB
YAML
Raw Normal View History

# This template uses Test Kitchen with the kitchen-dokken driver to
2017-12-12 23:41:28 -05:00
# 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
#
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
#
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Chef.gitlab-ci.yml
2017-12-12 23:41:28 -05:00
image: "chef/chefdk"
services:
- docker:dind
2017-12-12 23:41:28 -05:00
variables:
DOCKER_HOST: "tcp://docker:2375"
KITCHEN_LOCAL_YAML: ".kitchen.dokken.yml"
stages:
- build
2017-12-12 23:41:28 -05:00
- lint
- test
2017-12-12 23:41:28 -05:00
- functional
- deploy
2017-12-12 23:41:28 -05:00
cookstyle:
stage: lint
script:
- chef exec cookstyle .
2017-12-12 23:41:28 -05:00
chefspec:
stage: test
2017-12-12 23:41:28 -05:00
script:
- chef exec rspec spec
2017-12-12 23:41:28 -05:00
# Set up your test matrix here. Example:
# verify-centos-6:
# stage: functional
# before_script:
# - apt-get update
# - apt-get -y install rsync
# script:
# - kitchen verify default-centos-6 --destroy=always
#
# verify-centos-7:
# stage: functional
# before_script:
# - apt-get update
# - apt-get -y install rsync
# script:
# - kitchen verify default-centos-7 --destroy=always