-
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.
- Loading branch information
Showing
1 changed file
with
29 additions
and
28 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,29 +1,30 @@ | ||
os: | ||
- linux | ||
- osx | ||
language: ruby | ||
dist: trusty | ||
rvm: | ||
- 2.3 | ||
env: | ||
- BERKSHELF_PATH=/tmp/ | ||
before_install: | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi | ||
- curl -L https://www.chef.io/chef/install.sh | sudo bash | ||
- rvm use ruby-2.3@my_project_gemset --create | ||
- gem install bundler | ||
install: | ||
- bundle install --without integration | ||
- bundle exec berks vendor /tmp/cookbooks | ||
- cp test/support/dummy-validation.pem /tmp/validation.pem | ||
- cp test/support/client.rb /tmp/client.rb | ||
- cp test/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.3@my_project_gemset # To use the rvm ruby and custom gems | ||
- bundle exec rake # Test all | ||
after_script: | ||
os: | ||
- linux | ||
- osx | ||
language: ruby | ||
dist: trusty | ||
rvm: | ||
- 2.3.4 | ||
env: | ||
- BERKSHELF_PATH=/tmp/ | ||
before_install: | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi | ||
- curl -L https://www.chef.io/chef/install.sh | sudo bash | ||
- rvm use ruby-2.3@my_project_gemset --create | ||
- ruby -v | ||
- gem install bundler | ||
install: | ||
- bundle install --without integration | ||
- bundle exec berks vendor /tmp/cookbooks | ||
- cp test/support/dummy-validation.pem /tmp/validation.pem | ||
- cp test/support/client.rb /tmp/client.rb | ||
- cp test/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.3@my_project_gemset # To use the rvm ruby and custom gems | ||
- bundle exec rake # Test all | ||
after_script: | ||
- rvm --force gemset delete my_project_gemset |