This repository has been archived by the owner on Mar 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
/
.travis.yml
54 lines (46 loc) · 1.62 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
dist: trusty
addons:
apt:
sources:
- chef-stable-trusty
packages:
- chefdk=3.0.36-1
language: ruby
cache:
directories:
- vendor/bundle
- vendor/cookbooks
bundler_args: --path=$PWD/vendor/bundle
rvm:
- 2.4.0
script:
- chef exec cookstyle
- chef exec foodcritic --progress -f any .
services: docker
env:
matrix:
- INSTANCE=kibana4-apache-ubuntu-1404
- INSTANCE=kibana4-nginx-ubuntu-1404
- INSTANCE=kibana4-apache-package-ubuntu-1404
- INSTANCE=kibana4-apache-ubuntu-1604
- INSTANCE=kibana4-nginx-ubuntu-1604
- INSTANCE=kibana4-apache-package-ubuntu-1604
# - TESTS="integration:docker[kibana4-apache-centos-69]"
# - TESTS="integration:docker[kibana4-nginx-centos-69]"
# - TESTS="integration:docker[kibana4-apache-centos-741708]"
# - TESTS="integration:docker[kibana4-nginx-centos-741708]"
- INSTANCE=kibana5-nginx-ubuntu-1404
- INSTANCE=kibana5-nginx-ubuntu-1604
- INSTANCE=kibana5-nginx-package-ubuntu-1404
- INSTANCE=kibana5-nginx-package-ubuntu-1604
# before_install: curl -L https://www.getchef.com/chef/install.sh | sudo bash -s -- -P chefdk -v 2.4.17
# install: chef exec bundle install --jobs=3 --retry=3 --without='vagrant development'
# script: travis_retry chef exec bundle exec rake ${TESTS}
script:
- chef exec cookstyle
- chef exec foodcritic --progress -f any .
- KITCHEN_LOCAL_YAML=.kitchen.docker.yml chef exec kitchen test ${INSTANCE}
- cat .kitchen/logs/kitchen.log
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142455888
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )