-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
53 lines (50 loc) · 1.46 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
sudo: required
dist: bionic
addons:
apt:
sources:
- chef-current-bionic
packages:
- chefdk
install: echo "skipping bundle install"
services: docker
jobs:
include:
- stage: style
env:
- CHEF_LICENSE="accept-no-persist"
before_script:
- eval "$(chef shell-init bash)"
- chef --version
- cookstyle --version
- foodcritic --version
script:
- cookstyle .
- foodcritic .
- stage: itegration
env:
- CHEF_LICENSE="accept-no-persist"
- KITCHEN_YAML=.kitchen.yml
- INSTANCE=ubuntu-1404 SUITE=init
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
script:
- kitchen verify ${SUITE}-${INSTANCE}
- stage: itegration
env:
- CHEF_LICENSE="accept-no-persist"
- KITCHEN_YAML=.kitchen.yml
- INSTANCE=ubuntu-1604 SUITE=systemd
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
script:
- kitchen verify ${SUITE}-${INSTANCE}
- stage: itegration
env:
- CHEF_LICENSE="accept-no-persist"
- KITCHEN_YAML=.kitchen.yml
- INSTANCE=centos-7 SUITE=systemd
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
script:
- kitchen verify ${SUITE}-${INSTANCE}