-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perform the true Chef run in Travis CI (linux and mac environments) #32
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5e64942
Prevent backups of the android-sdk archive
rjaros87 8c970fe
Added to metadata.rb attributes: issues_url, source_url
rjaros87 b3ad4a1
Use the latest Chef version for tests
rjaros87 03394fd
Support Mac OS X
rjaros87 1848d5e
Test chef-client in zero mode using Travis
rjaros87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ Berksfile.lock | |
.ruby-gemset | ||
.rubocop_todo.yml | ||
.rspec | ||
|
||
.idea |
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 |
---|---|---|
@@ -1,7 +1,25 @@ | ||
os: | ||
- linux | ||
- osx | ||
language: ruby | ||
sudo: false | ||
rvm: | ||
- 2.0 | ||
- 2 | ||
bundler_args: --without integration | ||
cache: bundler | ||
- 2.2.2 | ||
env: | ||
- BERKSHELF_PATH=/tmp/ | ||
before_install: | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
site :opscode | ||
source 'https://supermarket.chef.io' | ||
|
||
metadata | ||
|
||
|
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
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,19 +3,27 @@ | |
maintainer_email '[email protected]' | ||
license 'Apache 2.0' | ||
description 'Installs Google Android SDK' | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
issues_url 'https://github.com/gildegoma/chef-android-sdk/issues' | ||
source_url 'https://github.com/gildegoma/chef-android-sdk' | ||
version '0.2.0' | ||
|
||
%w(java ark).each do |dep| | ||
depends dep | ||
end | ||
depends 'java' | ||
depends 'ark', '>= 1.1.0' | ||
depends 'homebrew', '>= 2.1.0' | ||
depends 'bash', '~> 0.1.2' | ||
depends 'chef-sugar', '>= 3.3.0' | ||
|
||
# TODO: maybe put maven into depends section | ||
recommends 'maven' # Maven 3.1.1+ is required by android-sdk::maven-rescue recipe | ||
|
||
supports 'ubuntu', '>= 12.04' | ||
supports 'centos', '>= 6.6' | ||
supports 'mac_os_x' | ||
|
||
# Support for more platforms is on the road (e.g. Debian, CentOS,...). | ||
# Please watch or help on https://github.com/gildegoma/chef-android-sdk/issues/5 | ||
|
||
recipe 'android-sdk::default', 'Install and update Google Android SDK' | ||
recipe 'android-sdk::maven_rescue', 'Install missing dependencies with Maven Android SDK Deployer' | ||
recipe 'android-sdk::maven_rescue', 'Install missing dependencies with Maven '\ | ||
'Android SDK Deployer' |
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' |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the limit on
mac_os_x
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had some trouble to set properly group on mac, but now it doesn't occurs. I will remove
unless mac_os_x?
today and recommit to branch.