Skip to content

Commit

Permalink
Prepare the Travis config for real builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hartmantis committed Jul 14, 2017
1 parent 5ef87e3 commit 64d879b
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .travis.yml
@@ -1,21 +1,25 @@
language: ruby
dist: trusty
sudo: required

branches:
only:
- master

sudo: required

services:
- docker

install:
- curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -P chefdk
- chef exec bundle install --without=development integration
- chef exec bundle install --without=development

before_script:
- echo $AWS_SSH_KEY | base64 -d > /tmp/kitchen_ssh_key

env:
global:
- AWS_SSH_KEY_ID=test-kitchen
- AWS_SSH_KEY_FILE=/tmp/kitchen_ssh_key
- AWS_REGION=us-west-1

script:
- set -e
- chef exec bundle exec rake
- chef exec bundle exec kitchen test default -c 2
- chef exec bundle exec kitchen test chef-12 -c 2
- set +e
- chef exec rake
- chef exec kitchen test default -a -c 3
- chef exec kitchen test chef-12 -a -c 3

0 comments on commit 64d879b

Please sign in to comment.