Skip to content

Commit

Permalink
Increase ruby version for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
rjaros87 committed May 29, 2017
1 parent 0a807eb commit 8703ef2
Showing 1 changed file with 29 additions and 28 deletions.
57 changes: 29 additions & 28 deletions .travis.yml
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

0 comments on commit 8703ef2

Please sign in to comment.