forked from sous-chefs/haproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
92 lines (78 loc) · 2.16 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
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
88
89
90
91
92
sudo: required
dist: trusty
addons:
apt:
sources:
- chef-stable-trusty
packages:
- chefdk
install: echo "skip bundle install"
branches:
only:
- master
services: docker
stages:
- unit
- test
- danger
# This list was generated using
# kitchen list | awk {'print $1'} | grep -v Instance
# We also add in a source install for a previous chef-client
env:
- INSTANCE=package-debian-8
- INSTANCE=package-debian-9
- INSTANCE=package-centos-6
- INSTANCE=package-centos-7
- INSTANCE=package-fedora-26
- INSTANCE=package-fedora-27
- INSTANCE=package-ubuntu-1404
- INSTANCE=package-ubuntu-1604
- INSTANCE=package-opensuse-leap
# - INSTANCE=package-amazonlinux
- INSTANCE=source-17-ubuntu-1604
- INSTANCE=source-18-debian-8
- INSTANCE=source-18-debian-9
- INSTANCE=source-18-centos-6
- INSTANCE=source-18-centos-7
- INSTANCE=source-18-centos-7 CHEF_VERSION=13.8.5
- INSTANCE=source-18-fedora-26
- INSTANCE=source-18-fedora-27
- INSTANCE=source-18-ubuntu-1404
- INSTANCE=source-18-ubuntu-1604
- INSTANCE=source-18-opensuse-leap
# - INSTANCE=source-18-amazonlinux
- INSTANCE=config-1-centos-7
- INSTANCE=config-2-centos-7
- INSTANCE=config-3-logs-centos-7
- INSTANCE=config-4-centos-7
- INSTANCE=config-backend-search-centos-7
- INSTANCE=config-1-userlist-centos-7
- INSTANCE=config-acl-centos-7
- INSTANCE=config-resolver-centos-7
- INSTANCE=config-ssl-redirect-centos-7
- INSTANCE=config-custom-template-centos-7
- INSTANCE=config-array-centos-7
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(shell-init bash)"
- chef --version
- cookstyle --version
- foodcritic --version
- chef gem install danger
script: KITCHEN_LOCAL_YAML=.kitchen.dokken.yml /opt/chefdk/bin/kitchen verify ${INSTANCE}
matrix:
include:
- script:
- chef exec delivery local all
allow_failures:
env:
- INSTANCE=package-ubuntu-1404
- INSTANCE=source-ubuntu-1404
jobs:
include:
- stage: unit
script: chef exec delivery local all
env: UNIT_AND_LINT=1
- stage: danger
script: chef exec danger
env: DANGER