This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
87 lines (85 loc) · 2.9 KB
/
.drone.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
pipeline:
Build:
image: chef/chefdk:2.5.8
commands:
- chef exec berks install
Cookstyle:
image: chef/chefdk:2.5.8
group: lint
commands:
- chef exec cookstyle
Foodcritic:
image: chef/chefdk:2.5.8
group: lint
commands:
- chef exec foodcritic . -X spec -f any
Rspec:
image: chef/chefdk:2.5.8
group: lint
commands:
- chef exec rspec -P spec/**/*_spec.rb --tty --color
kitchen-test-ubuntu-1604:
image: chef/chefdk:2.5.8
# group: kitchen-test
environment:
- DOCKER_HOST=tcp://docker:2375
commands:
- whoami
- apt-get update
- apt-get install -y apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- apt-get update
- apt-get install -y docker-ce
- sleep 5
- chef exec kitchen test default-ubuntu-1604
kitchen-test-ubuntu-1404:
image: chef/chefdk:2.5.8
# group: kitchen-test
environment:
- DOCKER_HOST=tcp://docker:2375
commands:
- whoami
- apt-get update
- apt-get install -y apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- apt-get update
- apt-get install -y docker-ce
- sleep 5
- chef exec kitchen test default-ubuntu-1404
kitchen-test-centos-7:
image: chef/chefdk:2.5.8
# group: kitchen-test
environment:
- DOCKER_HOST=tcp://docker:2375
commands:
- whoami
- apt-get update
- apt-get install -y apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- apt-get update
- apt-get install -y docker-ce
- sleep 5
- chef exec kitchen test default-centos-7
kitchen-test-centos-6:
image: chef/chefdk:2.5.8
# group: kitchen-test
environment:
- DOCKER_HOST=tcp://docker:2375
commands:
- whoami
- apt-get update
- apt-get install -y apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- apt-get update
- apt-get install -y docker-ce
- sleep 5
- chef exec kitchen test default-centos-6
services:
docker:
image: docker:18.04.0-ce-dind
privileged: true
command: [ --storage-driver=overlay2]