Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Chef.gitlab-ci.yml « templates « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1e14aa8bea94101de9941160cd2114d345f998ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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:
  - build
  - lint
  - test
  - functional
  - deploy

foodcritic:
  stage: lint
  script:
  - chef exec foodcritic .

cookstyle:
  stage: lint
  script:
  - chef exec cookstyle .

chefspec:
  stage: test
  script:
  - chef exec rspec spec

# 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