forked from treasure-data/chef-td-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (33 loc) · 894 Bytes
/
.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
dist: bionic
addons:
apt:
sources:
- chef-stable-bionic
packages:
- chef-workstation
install: skip
env:
- CHEF_LICENSE=accept
services:
- docker
env:
matrix:
- INSTANCE=default-amazonlinux-2
- INSTANCE=default-debian-10
- INSTANCE=default-ubuntu-1804
- INSTANCE=default-ubuntu-2004
- INSTANCE=default-ubuntu-1804 CHEF_VERSION=14
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(chef shell-init bash)"
- chef --version
script: CHEF_LICENSE=accept-no-persist KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen verify ${INSTANCE}
matrix:
include:
- script:
- sudo gem install yaml-lint mdl
- yaml-lint -i ./
- cookstyle .
- find . -not -path "*/\.*" -type f -iname "*.md" -exec mdl \{\} \+
env:
- CHEF_LICENSE=accept