forked from ajgon/opsworks_ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 1011 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
35
36
37
38
39
40
41
42
43
---
sudo: required
services:
- docker
rvm:
- 'ruby-2.4.0'
addons:
apt:
sources:
- chef-stable-precise
packages:
- chefdk
- python-pip
env:
matrix:
- INSTANCE=default-ubuntu-1604
- INSTANCE=all-options-ubuntu-1604
- INSTANCE=unicorn-apache-hanami-resque-ubuntu-1604
- INSTANCE=thin-nginx-padrino-delayed-job-ubuntu-1604
- INSTANCE=nullified-ubuntu-1604
- INSTANCE=maximum-override-ubuntu-1604
before_install:
- gem install bundler
install:
- pip install --user yamllint
- chef exec bundle install --jobs=5 --retry=5
before_script:
- sudo iptables -L DOCKER || sudo iptables -N DOCKER
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- chef exec bundle exec overcommit --sign
- chef exec bundle exec overcommit --sign pre-commit
script:
- chef exec bundle exec overcommit -r
- chef exec bundle exec rspec
- travis_retry chef exec bundle exec rake integration:docker[${INSTANCE}]