Skip to content

Commit

Permalink
Fix: chef-solo command not found travis error.
Browse files Browse the repository at this point in the history
  • Loading branch information
kadishmal committed May 15, 2014
1 parent 9129987 commit fb37daf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Expand Up @@ -18,19 +18,19 @@ before_install:
- sudo apt-get update
# Install Chef Solo prerequisites.
- sudo apt-get install ruby ruby-dev libopenssl-ruby rdoc ri irb build-essential ssl-cert
# Install Chef Solo.
# Chef Solo 11.4.4 is broken, so install a previous version.
# The bug is planned to be fixed in 11.4.5 which haven't been released yet.
- sudo gem install --version '<11.4.4' chef --no-rdoc --no-ri

install:
- sudo hostname localhost
# Install Chef Solo.
# Chef Solo 11.4.4 is broken, so install a previous version.
# The bug is planned to be fixed in 11.4.5 which haven't been released yet.
- gem install --version '<11.4.4' chef --no-rdoc --no-ri
# Make sure the target directory for cookbooks exists.
- mkdir -p /tmp/chef-solo
# Prepare a file with runlist for Chef Solo.
- echo '{"cubrid":{"version":"'$CUBRID_VERSION'"},"run_list":["cubrid::demodb"]}' > cubrid_chef.json
# Install CUBRID via Chef Solo. Download all cookbooks from a remote URL.
- sudo chef-solo -c test/testSetup/solo.rb -j cubrid_chef.json -r http://sourceforge.net/projects/cubrid/files/CUBRID-Demo-Virtual-Machines/Vagrant/chef-cookbooks.tar.gz/download
- sudo $(which chef-solo) -c test/testSetup/solo.rb -j cubrid_chef.json -r http://sourceforge.net/projects/cubrid/files/CUBRID-Demo-Virtual-Machines/Vagrant/chef-cookbooks.tar.gz/download

after_success:
# Install JSCoverage prerequisites.
Expand Down

0 comments on commit fb37daf

Please sign in to comment.