Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare the Travis config for real builds
- Loading branch information
1 parent
5ef87e3
commit 64d879b
Showing
1 changed file
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |