File tree Expand file tree Collapse file tree 1 file changed +94
-0
lines changed Expand file tree Collapse file tree 1 file changed +94
-0
lines changed Original file line number Diff line number Diff line change 1+ defaults : &defaults
2+ docker :
3+ - image : chef/chefdk
4+ working_directory : ~/cookbook/cookbook_cloudstack
5+
6+ version : 2
7+ jobs :
8+ checkout :
9+ << : *defaults
10+ steps :
11+ - checkout
12+ - save_cache :
13+ key : repo-{{ .Environment.CIRCLE_SHA1 }}
14+ paths :
15+ - ~/cookbook/cookbook_cloudstack
16+
17+ cookstyle :
18+ << : *defaults
19+ steps :
20+ - restore_cache :
21+ key : repo-{{ .Environment.CIRCLE_SHA1 }}
22+ - run : chef --version
23+ - run : chef exec cookstyle .
24+
25+ foodcritic :
26+ << : *defaults
27+ steps :
28+ - restore_cache :
29+ key : repo-{{ .Environment.CIRCLE_SHA1 }}
30+ - run : chef --version
31+ - run : chef exec foodcritic .
32+
33+ chefspec :
34+ << : *defaults
35+ steps :
36+ - restore_cache :
37+ key : repo-{{ .Environment.CIRCLE_SHA1 }}
38+ - run : chef --version
39+ - run : chef exec rspec spec
40+
41+ kitchen :
42+ machine :
43+ services :
44+ - docker
45+ working_directory : ~/cookbook/cookbook_cloudstack
46+ steps :
47+ - checkout
48+ - run : |
49+ if ! chef -v; then
50+ wget https://packages.chef.io/files/stable/chefdk/3.5.13/ubuntu/18.04/chefdk_3.5.13-1_amd64.deb
51+ sudo dpkg -i chefdk_3.5.13-1_amd64.deb
52+ fi
53+ - run : chef --version
54+ - run : bundle install
55+ - run : berks install
56+ - run : berks update
57+ - run : KITCHEN_LOCAL_YAML=.kitchen.docker.yml kitchen test --destroy always
58+
59+ workflows :
60+ version : 2
61+ build :
62+ jobs :
63+ - checkout :
64+ filters :
65+ tags :
66+ only : /v.*/
67+
68+ - cookstyle :
69+ requires :
70+ - checkout
71+ filters :
72+ tags :
73+ only : /v.*/
74+
75+ - foodcritic :
76+ requires :
77+ - checkout
78+ filters :
79+ tags :
80+ only : /v.*/
81+
82+ - chefspec :
83+ requires :
84+ - checkout
85+ filters :
86+ tags :
87+ only : /v.*/
88+
89+ - kitchen :
90+ requires :
91+ - checkout
92+ filters :
93+ tags :
94+ only : /v.*/
You can’t perform that action at this time.
0 commit comments