-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
42 lines (35 loc) · 1.91 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
rvm: 2.3
sudo: required
services: docker
env:
matrix:
- TESTS="style unit" CHEF_VERSION="~> 12.0"
- TESTS="style unit" CHEF_VERSION="~> 13.0"
- TESTS="integration[default-centos-6,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-centos-7,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-debian-7,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-debian-8,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-fedora-20,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-fedora-21,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-oraclelinux-6,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-oraclelinux-7,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-ubuntu-1204,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-ubuntu-1404,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-ubuntu-1504,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-ubuntu-1510,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-ubuntu-1604,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-scientific-66,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-scientific-71,verify]" CHEF_VERSION="~> 12.0"
- TESTS="integration[default-debian-8,verify]" CHEF_VERSION="~> 13.0"
before_install:
- chef --version &> /dev/null || curl -L https://www.getchef.com/chef/install.sh | sudo bash -s -- -P chefdk -v 1.3.43
- 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