Travis CI In Sub Directory

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?


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'
链接地址: http://www.djcxy.com/p/55764.html

上一篇: 在Scala中实现ExpandoObject

下一篇: 特拉维斯CI在子目录中