language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.1 env: - DB=mysql - DB=postgres - DB=sqlite gemfile: Gemfile.ci bundler_args: --path=vendor/bundle --without heroku before_install: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" before_script: - sh -c "cp config/database.$DB.yml config/database.yml" - 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" - sh -c "RAILS_ENV=test bundle exec rake db:schema:load" # Run specs script: "RAILS_ENV=test bundle exec rake" # 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.