forked from facebook/chef-cookbooks
/
.travis.yml
34 lines (29 loc) · 836 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
language: ruby
sudo: required
services: docker
env:
matrix:
- INSTANCE=default-centos-6
- INSTANCE=default-centos-7
- INSTANCE=default-ubuntu-1404
- INSTANCE=default-ubuntu-1604
- INSTANCE=default-debian-8
- INSTANCE=default-debian-sid
matrix:
allow_failures:
- env: INSTANCE=default-debian-sid
rvm:
# 2.1.0 is not supported anymore by chef-zero
# 2.2.0 fails due to https://github.com/flori/json/issues/253
- 2.3.1
- 2.4.0
gemfile:
Gemfile
before_script:
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142455888
- sudo iptables -L DOCKER || sudo iptables -N DOCKER
script:
- bundle exec rspec --format=d --color */*/spec/*rb
- bundle exec rubocop --display-cop-names -c .rubocop.yml
- ./scripts/run_foodcritic
- bundle exec kitchen verify $INSTANCE