-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
28 lines (23 loc) · 912 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
language: ruby
rvm: 2.5
cache: bundler
services: docker
os: linux
dist: bionic
env:
jobs:
- TESTS="style unit" CHEF_VERSION="~> 14.0" CHEF_LICENSE=accept
- TESTS="style unit" CHEF_VERSION="~> 15.0" CHEF_LICENSE=accept
- TESTS="style unit" CHEF_VERSION="~> 16.0" CHEF_LICENSE=accept
before_install:
- chef --version &> /dev/null || curl -L https://www.getchef.com/chef/install.sh | sudo bash -s -- -P chefdk -v 4.10.0
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
install:
- chef exec bundle install --jobs=3 --retry=3 --without='doc integration_vagrant integration_cloud guard'
before_script:
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142455888
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- chef --version
- cookstyle --version
- foodcritic --version
script: travis_retry chef exec bundle exec rake $TESTS