-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test chef-client in zero mode using Travis
- Loading branch information
Showing
8 changed files
with
108 additions
and
15 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,9 +1,25 @@ | ||
os: | ||
- linux | ||
- osx | ||
language: ruby | ||
sudo: false | ||
rvm: | ||
- 2.1 | ||
- 2 | ||
- 2.2.2 | ||
env: | ||
- BERKSHELF_PATH=/tmp/ | ||
before_install: | ||
- gem install bundler | ||
bundler_args: --without integration | ||
cache: bundler | ||
- git clone https://github.com/sstephenson/bats.git | ||
- sudo ./bats/install.sh /usr/local | ||
- curl -L https://www.chef.io/chef/install.sh | sudo bash | ||
- gem install bundler | ||
install: | ||
- bundle install --without integration | ||
- bundle exec berks vendor /tmp/cookbooks | ||
- cp tests/support/dummy-validation.pem /tmp/validation.pem | ||
- cp tests/support/client.rb /tmp/client.rb | ||
- cp tests/support/dna.json /tmp/dna.json | ||
script: | ||
- rvm reset # To use the embedded ruby in chef-client | ||
- sudo chef-client -z -c /tmp/client.rb -j /tmp/dna.json # Run chef in zero mode | ||
- '[ -f ~/.bash_profile ] && source ~/.bash_profile || source ~/.profile && source /etc/profile' # Apply new env vars | ||
- rvm use ruby-2.2.2 # To use the rvm ruby and custom gems | ||
- bundle exec rake # Test all |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bats | ||
|
||
@test "Check that the android is available" { | ||
command -v android | ||
} | ||
|
||
@test "Check that the adb is available" { | ||
command -v adb | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
node_name 'ci-travis' | ||
cookbook_path ['/tmp/cookbooks'] | ||
data_bag_path '/tmp/data_bags' | ||
environment_path '/tmp/environments' | ||
node_path '/tmp/nodes' | ||
role_path '/tmp/roles' | ||
client_path '/tmp/clients' | ||
validation_key '/tmp/validation.pem' | ||
client_key '/tmp/client.pem' | ||
chef_server_url 'http://127.0.0.1:8889' |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"android-sdk": { | ||
"owner": "travis", | ||
"version": "24.4.1", | ||
"checksum": { | ||
"linux": "e16917ad685c1563ccbc5dd782930ee1a700a1b6a6fd3e44b83ac694650435e9", | ||
"mac_os_x": "ce1638cb48526a0e55857fc46b57eda4349e6512006244ad13dd6c1361c74104" | ||
}, | ||
"components": [ | ||
"platform-tools", | ||
"build-tools-24", | ||
"android-24", | ||
"extra-android-support", | ||
"extra-google-google_play_services", | ||
"extra-google-m2repository", | ||
"extra-android-m2repository" | ||
] | ||
}, | ||
"run_list":["recipe[android-sdk::default]"] | ||
} |
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 |
---|---|---|
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