I have a gem with a subdirectory (test
) containing a Rails 3.1.1 application used to test the project. I'm trying to setup Travis-CI for continuous integration, however I cannot figure out how to setup my .travis.yml
configuration. I have:
gemfile: test/Gemfile
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- jruby
- ree
script: sh -e 'cd test' && bundle exec rake db:drop db:create db:migrate test
Which causes:
sh: Can't open cd test
Any ideas?
Like Jenkins, Travis CI is also one of the early players in the CI/CD tools market. The tool is written in Ruby and is developed & maintained by the Travis CI community. Travis CI was earlier available only for GitHub hosted projects but now it also supports Bitbucket hosted projects.
Configuration. Travis CI is configured by adding a file named . travis. yml , which is a YAML format text file, to the root directory of the repository.
There are three types of commands: Non-API Commands, General API Commands and Repository Commands. All commands take the form of travis COMMAND [ARGUMENTS] [OPTIONS] .
Found it was an issue with some of the documentation. The script call should have been:
script: sh -c 'cd test && bundle exec rake db:drop db:create db:migrate test'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With