Created
March 15, 2014 18:09
-
-
Save tony612/9571442 to your computer and use it in GitHub Desktop.
travis.ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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