rvm:
  - 1.9.2
  - 1.8.7

# Only build master branch
branches:
  only:
    - master

env:
  - DB=mysql
  - DB=postgres
  - DB=sqlite

gemfile: Gemfile.ci
bundler_args: --path=vendor/bundle --without heroku
 
before_script:
  - sh -c "if [ \"$DB\" = 'postgres' ]; then psql -c 'create database fat_free_crm_test;' -U postgres; fi"
  - sh -c "if [ \"$DB\" = 'mysql' ]; then mysql -e 'create database fat_free_crm_test;'; fi"
  
# Run RSpec tests and ensure that assets can compile without errors
script: "bundle exec rake && bundle exec rake assets:precompile"
  

# To stop Travis from running tests for a new commit,
# add the following to your commit message: [ci skip]
# You should add this when you edit documentation or comments, etc.


rvm:
  - 1.9.2
  - 1.8.7

# Only build master branch
branches:
  only:
    - master

env:
  - DB=mysql
  - DB=postgres
  - DB=sqlite

gemfile: Gemfile.ci
bundler_args: --path=vendor/bundle --without heroku
 
before_install: gem install bundler --pre

before_script:
  - sh -c "if [ \"$DB\" = 'postgres' ]; then psql -c 'create database fat_free_crm_test;' -U postgres; fi"
  - sh -c "if [ \"$DB\" = 'mysql' ]; then mysql -e 'create database fat_free_crm_test;'; fi"
  
# Run RSpec tests and ensure that assets can compile without errors
script: "bundle exec rake && bundle exec rake assets:precompile"
  

# To stop Travis from running tests for a new commit,
# add the following to your commit message: [ci skip]
# You should add this when you edit documentation or comments, etc.


Use pre-release version of bundler on Travis
Use pre-release version of bundler on Travis
