-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
43 lines (36 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
rvm: 2.3
sudo: required
services: docker
env:
global:
- CHEF_VERSION="~> 12.0"
matrix:
- TESTS="style unit"
- TESTS="integration[default-centos-6,verify]"
- TESTS="integration[default-debian-7,verify]"
- TESTS="integration[default-debian-8,verify]"
- TESTS="integration[default-oraclelinux-6,verify]"
- TESTS="integration[default-scientific-66,verify]"
- TESTS="integration[lwrp-centos-6,verify]"
- TESTS="integration[lwrp-debian-7,verify]"
- TESTS="integration[lwrp-debian-8,verify]"
- TESTS="integration[lwrp-scientific-66,verify]"
- TESTS="integration[ohai-centos-6,verify]"
- TESTS="integration[ohai-debian-7,verify]"
- TESTS="integration[ohai-debian-8,verify]"
- TESTS="integration[ohai-oraclelinux-6,verify]"
- TESTS="integration[ohai-ubuntu-1404,verify]"
- TESTS="integration[ohai-scientific-66,verify]"
before_install:
- chef --version &> /dev/null || curl -L https://www.getchef.com/chef/install.sh | sudo bash -s -- -P chefdk -v 1.2.22
- 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
- chef exec ruby --version
- cookstyle --version
- foodcritic --version
script: travis_retry chef exec bundle exec rake $TESTS