forked from chef-boneyard/httpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (53 loc) · 1.66 KB
/
.travis.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
rvm: 2.2
sudo: required
addons:
apt:
sources:
- chef-stable-precise
packages:
- chefdk
install: echo "skip bundle install"
services: docker
env:
matrix:
- INSTANCE=config-centos-6
- INSTANCE=config-centos-7
- INSTANCE=config-fedora-21
- INSTANCE=config-debian-7
- INSTANCE=config-ubuntu-1204
- INSTANCE=config-ubuntu-1404
- INSTANCE=module22-centos-6
- INSTANCE=module22-debian-7
- INSTANCE=module22-ubuntu-1204
- INSTANCE=module24-centos-7
- INSTANCE=module24-fedora-21
- INSTANCE=module24-ubuntu-1404
- INSTANCE=service22-single-centos-6
- INSTANCE=service22-single-debian-7
- INSTANCE=service22-single-ubuntu-1204
- INSTANCE=service22-multi-centos-6
- INSTANCE=service22-multi-debian-7
- INSTANCE=service22-multi-ubuntu-1204
- INSTANCE=service24-single-centos-7
- INSTANCE=service24-single-fedora-21
- INSTANCE=service24-single-ubuntu-1404
- INSTANCE=service24-multi-centos-7
- INSTANCE=service24-multi-fedora-21
- INSTANCE=service24-multi-ubuntu-1404
fast_finish: true
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- /opt/chefdk/embedded/bin/chef gem install kitchen-dokken
script:
- /opt/chefdk/embedded/bin/chef --version
- /opt/chefdk/embedded/bin/rubocop --version
- /opt/chefdk/embedded/bin/rubocop
- /opt/chefdk/embedded/bin/foodcritic --version
- /opt/chefdk/embedded/bin/foodcritic . --exclude spec
- /opt/chefdk/embedded/bin/rspec
- KITCHEN_YAML=.kitchen.yml kitchen verify ${INSTANCE}
after_script:
- docker images
- docker ps -a
- cat .kitchen/logs/kitchen.log