Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b70df56
commit 61fadf2
Showing
2 changed files
with
10 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 |
---|---|---|
|
@@ -3,4 +3,4 @@ driver: | |
name: digitalocean | ||
|
||
platforms: | ||
- name: ubuntu-14.04-x64 | ||
- name: ubuntu-14-04-x64 |
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,24 +1,23 @@ | ||
language: ruby | ||
|
||
cache: bundler | ||
sudo: true | ||
|
||
install: | ||
- wget -P /tmp https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.2.0-2_amd64.deb | ||
- sudo dpkg -i /tmp/chefdk_0.2.0-2_amd64.deb | ||
- sudo chef exec /opt/chefdk/embedded/bin/bundle install --without=development integration | ||
- curl -L https://www.opscode.com/chef/install.sh | sudo bash -s -- -P chefdk | ||
- chef exec bundle install --without=development | ||
|
||
before_script: | ||
- ssh-keygen -f $DIGITALOCEAN_SSH_KEY_FILE -b 768 -P '' | ||
# Pending ENV support in Kitchen's Rake tasks and not just the CLI | ||
- cp .kitchen.travis.yml .kitchen.local.yml | ||
- chef exec /opt/chefdk/embedded/bin/rake upload_key | ||
- echo -e $DIGITALOCEAN_SSH_KEY_BODY > ~/.ssh/id_rsa | ||
|
||
script: chef exec /opt/chefdk/embedded/bin/rake | ||
script: | ||
- chef exec rake && chef exec rake kitchen:all | ||
|
||
after_script: | ||
- chef exec /opt/chefdk/embedded/bin/rake delete_key | ||
- chef exec kitchen destroy | ||
|
||
env: | ||
global: | ||
# - KITCHEN_LOCAL_YAML=.kitchen.travis.yml | ||
- DIGITALOCEAN_SSH_KEY_FILE=~/.ssh/id_rsa | ||
- secure: AT0wkka32uo1DJwLoYBnXOKrg5JZrUV9Kumxb5xx/SP0aDeFRxKw2zClrnTWFhQntreNAv/Y0DIjmgG/dtZ5bfBZCF/8wIVM+A7sQH4BmOdIwoKFmzNL3ce8sWOW5xzUY3wSVBLDpko4ChI//+9NhG+hog3CMXG5mQi3TmGLP5U= | ||
- secure: pi2bVnsDIyoE/y9W6gR944lXPfnMmB7uTeCsx5JSE/wkE3XitRgFLMKc66GXZT6JhtGbhUDIMwnG26GPZoWa8EHj7LQ6JH+xu8/HVvwPtMQmUBRPWYQ/IjF17TaAfYP4lZ7WBlDPztfYX/fiP1AiSVYLp+JJmVbx5v3Uaahrv/4= |