Skip to content

Instantly share code, notes, and snippets.

@tony612
Created March 15, 2014 18:09
Show Gist options
  • Select an option

  • Save tony612/9571442 to your computer and use it in GitHub Desktop.

Select an option

Save tony612/9571442 to your computer and use it in GitHub Desktop.
travis.ci
# Notice:
# ci will fail when the coverage is less than the minimum coverage
bundler_args: --without development production
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
fast_finish: true
# Rails
env:
- DB=sqlite
script:
- bundle exec rake db:test:prepare
- rake db:migrate RAILS_ENV=test
- bundle exec rspec spec
before_script:
- "cp ./config/database.travis.yml ./config/database.yml"
after_failure:
- "cat ./config/database.yml"
- "cat ./db/schema.rb"
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment