-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (54 loc) · 1.15 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
---
dist: trusty
sudo: required
group: edge
services: docker
addons:
apt:
sources:
- chef-stable-trusty
packages:
- chefdk
stages:
- lint
- test
install: echo "skip bundle install"
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- chef --version
- chef gem update fauxhai
env:
- T=server-debian-8
- T=server-debian-9
- T=server-ubuntu-14
- T=server-ubuntu-16
- T=server-ubuntu-18
- T=server-centos-6
- T=server-centos-7
script:
- chef gem install kitchen-dokken
- KITCHEN_LOCAL_YAML=.kitchen.dokken.yml kitchen test $T -d always
jobs:
include:
- stage: lint
env:
services:
sudo:
language: python
python: 3.6
script:
- cookstyle --version
- foodcritic --version
- rspec --version
- delivery --version
- pip install pre-commit
- pre-commit run -a
- chef exec delivery local all
notifications:
email:
recipients:
on_failure: never
on_success: always