github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/gitlab/testdata/templates/chef.yaml (about) 1 # This template uses Test Kitchen with the kitchen-dokken driver to 2 # perform functional testing. Doing so requires that your runner be a 3 # Docker runner configured for privileged mode. Please see 4 # https://docs.gitlab.com/runner/executors/docker.html#use-docker-in-docker-with-privileged-mode 5 # for help configuring your runner properly, or, if you want to switch 6 # to a different driver, see http://kitchen.ci/docs/drivers 7 # 8 # You can copy and paste this template into a new `.gitlab-ci.yml` file. 9 # You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword. 10 # 11 # To contribute improvements to CI/CD templates, please follow the Development guide at: 12 # https://docs.gitlab.com/ee/development/cicd/templates.html 13 # This specific template is located at: 14 # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Chef.gitlab-ci.yml 15 16 image: "chef/chefdk" 17 services: 18 - docker:dind 19 20 variables: 21 DOCKER_HOST: "tcp://docker:2375" 22 KITCHEN_LOCAL_YAML: ".kitchen.dokken.yml" 23 24 stages: 25 - build 26 - lint 27 - test 28 - functional 29 - deploy 30 31 cookstyle: 32 stage: lint 33 script: 34 - chef exec cookstyle . 35 36 chefspec: 37 stage: test 38 script: 39 - chef exec rspec spec 40 41 # Set up your test matrix here. Example: 42 # verify-centos-6: 43 # stage: functional 44 # before_script: 45 # - apt-get update 46 # - apt-get -y install rsync 47 # script: 48 # - kitchen verify default-centos-6 --destroy=always 49 # 50 # verify-centos-7: 51 # stage: functional 52 # before_script: 53 # - apt-get update 54 # - apt-get -y install rsync 55 # script: 56 # - kitchen verify default-centos-7 --destroy=always